Skip to content

Commit

Permalink
Update the post comments block
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 10, 2020
1 parent 2611a1d commit 528c871
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/block-library/src/post-comments/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 528c871

Please sign in to comment.