Changeset 53336 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 05/03/2022 02:31:12 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r53332 r53336 1326 1326 $comment_args['paged'] = 1; 1327 1327 } elseif ( 'newest' === $default_page ) { 1328 $comment_args['paged'] = (int) ( new WP_Comment_Query( $comment_args ) )->max_num_pages; 1328 $max_num_pages = (int) ( new WP_Comment_Query( $comment_args ) )->max_num_pages; 1329 if ( 0 !== $max_num_pages ) { 1330 $comment_args['paged'] = $max_num_pages; 1331 } 1329 1332 } 1330 1333 // Set the `cpage` query var to ensure the previous and next pagination links are correct
Note: See TracChangeset
for help on using the changeset viewer.