Skip to content

Commit

Permalink
Suppress revision taxonomy in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
olatechpro committed Jan 29, 2025
1 parent e25a8ee commit 9d079d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [
Expand Down

0 comments on commit 9d079d5

Please sign in to comment.