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 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/inc/rest/routes/TermRoutes.php b/inc/rest/routes/TermRoutes.php
index fe5de06..ec029c8 100644
--- a/inc/rest/routes/TermRoutes.php
+++ b/inc/rest/routes/TermRoutes.php
@@ -24,7 +24,7 @@
parent::__construct();
// $this->cache->invalidateGroup('terms');
$this->per_page = 20;
- $this->cache->clear();
+
add_action('edited_term', [$this, 'deleteTermPath']);
add_action('wp_login', [$this, 'clearUserTaxonomyCache'], 10, 2);
}
@@ -182,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) {
@@ -195,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