Jake Vanderwerf
2026-08-29 f859e64a57c624ff2daa2b21355f65a49fd4807d
inc/managers/IconsManager.php
@@ -698,6 +698,18 @@
      foreach ($this->icons as $style => $names) {
         $styleClass = ($style !== $this->style) ? '-'.substr($style, 0, 2) : '';
         foreach ($names as $icon) {
            $css .= $this->generateSingleIconCss($icon, $style, $styleClass);
         }
      }
      update_option($this->timestampKey, time());
      return $this->minifyCss($css);
   }
   public function generateSingleIconCss(string $icon, ?string $style = null, ?string $styleClass = null):string
   {
      $style = $style??$this->style;
      $styleClass = $styleClass??($style !== $this->style) ? '-'.substr($style, 0, 2) : '';
      $css = '';
            $svg = $this->getEncodedSVG($icon, $style);
            if ($svg !== '') {
               if ($icon === 'caret-down') {
@@ -713,10 +725,7 @@
               $css .= "--icon:url('data:image/svg+xml;base64,{$svg}');";
               $css .= "}";
            }
         }
      }
      update_option($this->timestampKey, time());
      return $this->minifyCss($css);
      return $css;
   }
   protected function minifyCSS(string $css): string