From 9f86429a1252b45c95b7c62fbaa1b82de3723997 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 05 Jan 2026 18:16:07 +0000
Subject: [PATCH] =Complete TaxonomySelector.js and TaxonomyCreator.js refactor
---
inc/helpers/terms.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/inc/helpers/terms.php b/inc/helpers/terms.php
index 6825ae5..77f8fec 100644
--- a/inc/helpers/terms.php
+++ b/inc/helpers/terms.php
@@ -81,6 +81,10 @@
add_action('save_post', 'jvbClearListCache', 10, 2);
function jvbClearListCache(int $post_id, \WP_Post $post):void
{
+ // SAFETY: Skip attachments and other non-content post types
+ if (in_array($post->post_type, jvbIgnoredPostTypes())) {
+ return;
+ }
if (jvbNoSaveIt($post_id, $post)) {
return;
}
--
Gitblit v1.10.0