diff --git a/projects/plugins/jetpack/changelog/fix-sync-test-core-after-insert-post-callback b/projects/plugins/jetpack/changelog/fix-sync-test-core-after-insert-post-callback deleted file mode 100644 index 32e879d17fc0..000000000000 --- a/projects/plugins/jetpack/changelog/fix-sync-test-core-after-insert-post-callback +++ /dev/null @@ -1,5 +0,0 @@ -Significance: patch -Type: other -Comment: Tests: keep a WordPress trunk callback out of a Sync test that passes invalid post arguments. - - diff --git a/projects/plugins/jetpack/tests/php/sync/Jetpack_Sync_Post_Test.php b/projects/plugins/jetpack/tests/php/sync/Jetpack_Sync_Post_Test.php index e930d7ace52b..2024ce8bb390 100644 --- a/projects/plugins/jetpack/tests/php/sync/Jetpack_Sync_Post_Test.php +++ b/projects/plugins/jetpack/tests/php/sync/Jetpack_Sync_Post_Test.php @@ -1477,8 +1477,6 @@ public function test_sync_jetpack_published_post_no_action( $post_ID, $post ) { remove_action( 'wp_after_insert_post', 'wp_random_content_flush_rewrite_rules_for_post' ); $this->server_event_storage->reset(); - // Only the Sync listener is under test; core's typed callback throws on these invalid arguments. - remove_action( 'wp_after_insert_post', 'wp_random_content_flush_rewrite_rules_for_post' ); do_action( 'wp_after_insert_post', $post_ID, $post, false, null ); $this->sender->do_sync();