From 9d079d53d5f3cadfd402ecb689bd026c9eb570d9 Mon Sep 17 00:00:00 2001 From: olatechpro Date: Wed, 29 Jan 2025 15:14:58 +0100 Subject: [PATCH] Suppress revision taxonomy in modal --- common/php/class-module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/php/class-module.php b/common/php/class-module.php index 912485a5..a60760cc 100644 --- a/common/php/class-module.php +++ b/common/php/class-module.php @@ -1055,7 +1055,7 @@ public function localize_post_data($localized_post_data, $post, $can_edit_post) $taxonomies = get_object_taxonomies($post->post_type, 'object'); foreach ($taxonomies as $taxonomy => $tax_object ) { if (!empty($tax_object->public) - && !in_array($taxonomy, ['author', 'post_format', 'post_status', 'post_status_core_wp_pp', 'post_visibility_pp'])) { + && !in_array($taxonomy, ['author', 'post_format', 'post_status', 'post_status_core_wp_pp', 'post_visibility_pp', 'pp_revision_status'])) { $terms = get_the_terms($post->ID, $taxonomy); //add post content to localized data $localized_post_data['taxonomies'][$post->ID][$taxonomy] = [