From 474109a5df0a06f5343ab184838fe2d80e3872a8 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 11 Jan 2026 19:23:20 +0000
Subject: [PATCH] =Fixed timeline CRUD.js issue where this.activeItem was set null when we still needed it
---
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