Jake Vanderwerf
2026-01-04 d38d825e3484d822ea3c1f0fb1df37ecf386b18a
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,7 +43,7 @@
        $this->id = sanitize_key($id);
        $this->taxonomy = jvbCheckBase($taxonomy);
        $this->name = str_replace(BASE, '', $taxonomy);
        $this->icon = new JVBIcons();
        $this->icon = IconsManager::getInstance();
        $this->cache = CacheManager::for(jvbNoBase($taxonomy), WEEK_IN_SECONDS);
        $this->base = $config['base'] ?? '';