Skip to content

Commit

Permalink
don't remove deprecated terms from posts
Browse files Browse the repository at this point in the history
  • Loading branch information
kasprzyk-sz committed Oct 30, 2024
1 parent 3ba58de commit 7ae49db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/plugins/embl-taxonomy/includes/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function sync_taxonomy(WP_REST_Request $request = null) {
wp_add_object_terms($post_id, $replacement_term_id, EMBL_Taxonomy::TAXONOMY_NAME);

// Remove the deprecated term from the post
wp_remove_object_terms($post_id, $wp_term->term_id, EMBL_Taxonomy::TAXONOMY_NAME);
// wp_remove_object_terms($post_id, $wp_term->term_id, EMBL_Taxonomy::TAXONOMY_NAME);
}
}
}
Expand Down

0 comments on commit 7ae49db

Please sign in to comment.