From d38d825e3484d822ea3c1f0fb1df37ecf386b18a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 04 Jan 2026 19:54:16 +0000
Subject: [PATCH] =TaxonomyCreator.js debugging
---
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