Skip to content

Commit 6fc12d0

Browse files
committed
Because the title was emptied, the post update failed entirely, leaving the original content.
1 parent c18af08 commit 6fc12d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/phpunit/tests/post/wpPublishPost.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function test_wp_update_post_with_content_filtering() {
8888

8989
$post_id = wp_insert_post(
9090
array(
91-
'post_title' => '<script>Test</script>',
91+
'post_title' => 'Talking about: <script>Test</script>',
9292
)
9393
);
9494
$post = get_post( $post_id );
@@ -107,7 +107,7 @@ public function test_wp_update_post_with_content_filtering() {
107107
kses_remove_filters();
108108

109109
$post = get_post( $post->ID );
110-
$this->assertSame( 'Test', $post->post_title );
110+
$this->assertSame( 'Talking about: ', $post->post_title );
111111
}
112112

113113
/**

0 commit comments

Comments
 (0)