Jake Vanderwerf
2026-08-25 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a
inc/managers/IconsManager.php
@@ -43,7 +43,7 @@
   private function __construct(string $source)
   {
      $this->source = $source;
      $this->cache = Cache::for('icons_' . $source, WEEK_IN_SECONDS);
      $this->cache = Cache::for('icons_' . $source);
      $this->style = Site::icon();
      $this->addMap();
@@ -356,7 +356,7 @@
         if (Site::has('dashboard')) {
            $map['dash'] = 'door';
         }
         if (Site::has('magicLink')) {
         if (Site::has('magic_link')) {
            $map['magicLink'] = 'magic-wand';
         }
         if (Site::hasAnyIntegration()) {
@@ -448,7 +448,7 @@
         $instance->archiveCurrentVersion($css);
         if (file_put_contents($css_path, $css) !== false) {
            Cache::touch('icons_' . $source);
            Cache::for('icons_'.$source)->flush();
            error_log("[IconsManager] Updated {$source}.css");
         } else {
            error_log("[IconsManager] Could not write {$source}.css");
@@ -486,7 +486,7 @@
         $instance->archiveCurrentVersion($css);
         if (file_put_contents($css_path, $css) !== false) {
            Cache::touch('icons_' . $source);
            Cache::for('icons_'.$source)->flush();
            error_log("[IconsManager] Updated {$source}.css");
         } else {
            error_log("[IconsManager] Could not write {$source}.css");
@@ -649,7 +649,7 @@
   public function registerStyle(): void
   {
      $timestamp = Cache::lastModified('icons_' . $this->source);
      $timestamp = Cache::for('icons_'.$this->source)->getTimestamp();
      $handle = 'jvb-icons-' . $this->source;
      wp_register_style(
@@ -803,7 +803,7 @@
            if (file_put_contents($css_path, $entry['css']) !== false) {
               $this->icons = $entry['iconList'];
               $this->saveIcons();
               Cache::touch('icons_' . $this->source);
               Cache::for('icons_'.$this->source)->flush();
               return true;
            }
@@ -824,7 +824,8 @@
      }
      $needsUpdate[$this->source] = true;
      update_option(BASE.'icons_needs_update', $needsUpdate);
      Cache::touch('icons_' . $this->source);
      Cache::for('icons_'.$this->source)->flush();
   }
   public function mergeVersions(array $timestamps): bool