diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 0e5797fa7e619..73d95df2af65c 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -3984,7 +3984,7 @@ function wp_trim_excerpt( $text = '', $post = null ) { /* * Temporarily unhook do_blocks() since excerpt_remove_blocks( $text ) - * handels block rendering needed for excerpt. + * handles block rendering needed for excerpt. */ $filter_block_removed = remove_filter( 'the_content', 'do_blocks', 9 ); diff --git a/tests/phpunit/tests/formatting/wpTrimExcerpt.php b/tests/phpunit/tests/formatting/wpTrimExcerpt.php index d77f322058388..d588c01174030 100644 --- a/tests/phpunit/tests/formatting/wpTrimExcerpt.php +++ b/tests/phpunit/tests/formatting/wpTrimExcerpt.php @@ -153,8 +153,6 @@ public function test_wp_trim_excerpt_does_not_restore_wp_filter_content_tags_if_ * Tests that `wp_trim_excerpt()` does process valid blocks. * * @ticket 58682 - * - * @covers ::wp_trim_excerpt */ public function test_wp_trim_excerpt_check_if_block_renders() { $post = self::factory()->post->create( @@ -172,8 +170,6 @@ public function test_wp_trim_excerpt_check_if_block_renders() { * Tests that `wp_trim_excerpt()` unhooks `do_blocks()` from 'the_content' filter. * * @ticket 58682 - * - * @covers ::wp_trim_excerpt */ public function test_wp_trim_excerpt_unhooks_do_blocks() { $post = self::factory()->post->create(); @@ -200,8 +196,6 @@ static function( $content ) use ( &$has_filter ) { * Tests that `wp_trim_excerpt()` doesn't permanently unhook `do_blocks()` from 'the_content' filter. * * @ticket 58682 - * - * @covers ::wp_trim_excerpt */ public function test_wp_trim_excerpt_should_not_permanently_unhook_do_blocks() { $post = self::factory()->post->create(); @@ -215,8 +209,6 @@ public function test_wp_trim_excerpt_should_not_permanently_unhook_do_blocks() { * Tests that `wp_trim_excerpt()` doesn't restore `do_blocks()` if it was previously unhooked. * * @ticket 58682 - * - * @covers ::wp_trim_excerpt */ public function test_wp_trim_excerpt_does_not_restore_do_blocks_if_previously_unhooked() { $post = self::factory()->post->create();