Changeset 61009 for trunk/src/wp-includes/blocks/comments.php
- Timestamp:
- 10/21/2025 07:11:53 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/comments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/comments.php
r58275 r61009 29 29 global $post; 30 30 31 if ( ! isset( $block->context['postId'] ) ) { 32 return ''; 33 } 34 31 35 $post_id = $block->context['postId']; 32 if ( ! isset( $post_id ) ) {33 return '';34 }35 36 36 // Return early if there are no comments and comments are closed. 37 37 if ( ! comments_open( $post_id ) && (int) get_comments_number( $post_id ) === 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.