diff --git a/packages/block-library/src/post-comments/index.php b/packages/block-library/src/post-comments/index.php index b87332e3ca5823..42f9a8d60d94ee 100644 --- a/packages/block-library/src/post-comments/index.php +++ b/packages/block-library/src/post-comments/index.php @@ -25,8 +25,8 @@ function render_block_core_post_comments( $attributes, $content, $block ) { 'post_id' => $post_id, 'count' => true, ); - // Return early if there are no comments and comments are closed - if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0) { + // Return early if there are no comments and comments are closed. + if ( ! comments_open( $post_id ) && get_comments( $comment_args ) === 0 ) { return ''; }