From bad59c66549eb601fed963ed013f9b79305ca003 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 07 Jan 2026 20:09:14 +0000
Subject: [PATCH] =Feedblock integrated with refactored taxonomy selector

---
 inc/rest/routes/TermRoutes.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/inc/rest/routes/TermRoutes.php b/inc/rest/routes/TermRoutes.php
index 1f8c726..ec029c8 100644
--- a/inc/rest/routes/TermRoutes.php
+++ b/inc/rest/routes/TermRoutes.php
@@ -24,6 +24,7 @@
         parent::__construct();
 //		$this->cache->invalidateGroup('terms');
         $this->per_page = 20;
+
         add_action('edited_term', [$this, 'deleteTermPath']);
         add_action('wp_login', [$this, 'clearUserTaxonomyCache'], 10, 2);
     }
@@ -181,8 +182,7 @@
     public function handleTermSelectionRequest(WP_REST_Request $request):WP_REST_Response
     {
 		$data = $request->get_params();
-		$taxonomy = jvbCheckBase($data['taxonomy'])??'';
-
+		$taxonomy = sanitize_text_field($data['taxonomy'])??'';
 		// Check HTTP cache headers
 		$cache_check = $this->checkHeaders($request, $taxonomy);
 		if ($cache_check) {
@@ -194,6 +194,7 @@
 		if (str_contains($taxonomy, ',')) {
 			return $this->handleBatchTermRequest($taxonomy, $data, $request);
 		}
+		$taxonomy = jvbCheckBase($taxonomy);
 
 		if (array_key_exists('termIDs', $data)) {
 			$args = [

--
Gitblit v1.10.0