From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc

---
 inc/registry/TaxonomyRegistrar.php |   33 +--------------------------------
 1 files changed, 1 insertions(+), 32 deletions(-)

diff --git a/inc/registry/TaxonomyRegistrar.php b/inc/registry/TaxonomyRegistrar.php
index c1bf6e2..67fed28 100644
--- a/inc/registry/TaxonomyRegistrar.php
+++ b/inc/registry/TaxonomyRegistrar.php
@@ -3,10 +3,6 @@
 
 use JVBase\meta\MetaManager;
 use JVBase\meta\MetaRegistry;
-use JVBase\managers\CacheManager;
-use JVBase\utility\Checker;
-use Exception;
-use WP_Error;
 if (!defined('ABSPATH')) {
 	exit;
 }
@@ -31,7 +27,6 @@
 		if ($this->config['is_content'] ?? false) {
 			$this->setupContentTaxonomyHooks();
 		}
-		$this->registerHooks();
 	}
 
 	public function register(): void
@@ -217,7 +212,7 @@
         // Prepare data for insertion/update
         $data = [
             'term_id' => $term_id,
-            'name' => $term->name,
+            'name' => html_entity_decode($term->name),
             'slug' => $term->slug,
             'updated_at' => current_time('mysql')
         ];
@@ -346,30 +341,4 @@
     {
         return jvbContentTaxonomiesTableFields($this->slug)['fields'] ?? [];
     }
-
-	protected function registerHooks():void
-	{
-		$actions = ['created_term', 'edited_term', 'delete_term'];
-		$taxonomy = $this->taxonomy;
-		foreach ($actions as $action) {
-			add_action($action, function($term_id, $tt_id, $tax) use ($taxonomy, $action) {
-				if ($tax !== $taxonomy) return;
-
-				$term = get_term($term_id, $tax);
-
-				CacheManager::for(jvbNoBase($taxonomy))->invalidate();
-				CacheManager::for(jvbNoBase($taxonomy))->clear();
-
-				// Clear cache for associated content types
-				$checker = Checker::getInstance();
-				$content_types = $checker->getContentForTaxonomy($taxonomy);
-
-				foreach ($content_types as $content_type) {
-					CacheManager::for($content_type)->invalidate();
-				}
-
-				do_action("jvb_taxonomy_cache_invalidated_{$taxonomy}", $term, $action);
-			}, 10, 3);
-		}
-	}
 }

--
Gitblit v1.10.0