diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index b59e76bcc6..f19648c2d6 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -1397,7 +1397,6 @@ function build_comment_query_vars_from_block( $block ) { 'order' => 'ASC', 'status' => 'approve', 'no_found_rows' => false, - 'update_comment_meta_cache' => false, // We lazy-load comment meta for performance. ); if ( ! empty( $block->context['postId'] ) ) { diff --git a/tests/phpunit/tests/blocks/renderCommentTemplate.php b/tests/phpunit/tests/blocks/renderCommentTemplate.php index a278dbfdd0..97ff1b8604 100644 --- a/tests/phpunit/tests/blocks/renderCommentTemplate.php +++ b/tests/phpunit/tests/blocks/renderCommentTemplate.php @@ -67,15 +67,14 @@ class Tests_Blocks_RenderReusableCommentTemplate extends WP_UnitTestCase { $this->assertEquals( array( - 'orderby' => 'comment_date_gmt', - 'order' => 'ASC', - 'status' => 'approve', - 'no_found_rows' => false, - 'update_comment_meta_cache' => false, - 'post_id' => self::$custom_post->ID, - 'hierarchical' => 'threaded', - 'number' => 5, - 'paged' => 1, + 'orderby' => 'comment_date_gmt', + 'order' => 'ASC', + 'status' => 'approve', + 'no_found_rows' => false, + 'post_id' => self::$custom_post->ID, + 'hierarchical' => 'threaded', + 'number' => 5, + 'paged' => 1, ), build_comment_query_vars_from_block( $block ) ); @@ -94,14 +93,13 @@ class Tests_Blocks_RenderReusableCommentTemplate extends WP_UnitTestCase { $this->assertEquals( array( - 'orderby' => 'comment_date_gmt', - 'order' => 'ASC', - 'status' => 'approve', - 'no_found_rows' => false, - 'update_comment_meta_cache' => false, - 'hierarchical' => 'threaded', - 'number' => 5, - 'paged' => 1, + 'orderby' => 'comment_date_gmt', + 'order' => 'ASC', + 'status' => 'approve', + 'no_found_rows' => false, + 'hierarchical' => 'threaded', + 'number' => 5, + 'paged' => 1, ), build_comment_query_vars_from_block( $block ) );