diff --git a/packages/block-library/src/post-comments/index.php b/packages/block-library/src/post-comments/index.php index 88405e8cb586bc..85780230704ecd 100644 --- a/packages/block-library/src/post-comments/index.php +++ b/packages/block-library/src/post-comments/index.php @@ -16,17 +16,11 @@ function render_block_core_post_comments() { return ''; } - ob_start(); // This generates a deprecate message. // Ideally this deprecation is removed. - comments_template(); - ob_get_clean(); - ob_start(); - wp_list_comments( array( 'page' => $post->ID ) ); - $comments = ob_get_clean(); - - return $comments; + comments_template(); + return ob_get_clean(); } /**