diff --git a/src/class-post-duplicator.php b/src/class-post-duplicator.php index 7661f6e58..a13343ae0 100644 --- a/src/class-post-duplicator.php +++ b/src/class-post-duplicator.php @@ -147,14 +147,15 @@ public function set_modified( $data ) { */ public function create_duplicate_for_rewrite_and_republish( \WP_Post $post ) { $options = [ - 'copy_title' => true, - 'copy_date' => true, - 'copy_name' => false, - 'copy_content' => true, - 'copy_excerpt' => true, - 'copy_author' => true, - 'copy_menu_order' => true, - 'use_filters' => false, + 'copy_title' => true, + 'copy_date' => true, + 'copy_name' => false, + 'copy_content' => true, + 'copy_excerpt' => true, + 'copy_author' => true, + 'copy_menu_order' => true, + 'use_filters' => false, + 'taxonomies_excludelist' => [ 'post_translations' ], ]; $defaults = $this->get_default_options(); $options = \wp_parse_args( $options, $defaults ); diff --git a/src/class-post-republisher.php b/src/class-post-republisher.php index 03aec3565..c3c307da9 100644 --- a/src/class-post-republisher.php +++ b/src/class-post-republisher.php @@ -346,7 +346,7 @@ protected function republish_post_taxonomies( $post ) { $original_post_id = Utils::get_original_post_id( $post->ID ); $copy_taxonomies_options = [ - 'taxonomies_excludelist' => [], + 'taxonomies_excludelist' => [ 'post_translations' ], 'use_filters' => false, 'copy_format' => true, ];