From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind

---
 inc/forms/TaxonomySelectorOld.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/inc/forms/TaxonomySelectorOld.php b/inc/forms/TaxonomySelectorOld.php
index 3215b5b..7da3336 100644
--- a/inc/forms/TaxonomySelectorOld.php
+++ b/inc/forms/TaxonomySelectorOld.php
@@ -1,8 +1,8 @@
 <?php
 namespace JVBase\forms;
 
-use JVBase\JVBIcons;
 use JVBase\managers\CacheManager;
+use JVBase\managers\IconsManager;
 use WP_REST_Request;
 use WP_REST_Response;
 use WP_Term;
@@ -21,7 +21,7 @@
     protected string $id;
     protected string $name;
     protected string $taxonomyName;
-    protected JVBIcons $icon;
+    protected IconsManager $icon;
     protected string $plural;
 
     protected string $taxonomy;
@@ -43,8 +43,8 @@
         $this->id = sanitize_key($id);
         $this->taxonomy = jvbCheckBase($taxonomy);
         $this->name = str_replace(BASE, '', $taxonomy);
-        $this->icon = new JVBIcons();
-        $this->cache = new CacheManager('taxonomy');
+        $this->icon = IconsManager::getInstance();
+        $this->cache = CacheManager::for(jvbNoBase($taxonomy), WEEK_IN_SECONDS);
 
         $this->base = $config['base'] ?? '';
 

--
Gitblit v1.10.0