Changeset 52551 for trunk/src/wp-includes/blocks/query-pagination-next.php
- Timestamp:
- 01/11/2022 03:11:06 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/query-pagination-next.php
r52042 r52551 44 44 remove_filter( 'next_posts_link_attributes', $filter_link_attributes ); 45 45 } elseif ( ! $max_page || $max_page > $page ) { 46 $custom_query = new WP_Query( build_query_vars_from_query_block( $block, $page ) ); 47 if ( (int) $custom_query->max_num_pages !== $page ) { 46 $custom_query = new WP_Query( build_query_vars_from_query_block( $block, $page ) ); 47 $custom_query_max_pages = (int) $custom_query->max_num_pages; 48 if ( $custom_query_max_pages && $custom_query_max_pages !== $page ) { 48 49 $content = sprintf( 49 50 '<a href="%1$s" %2$s>%3$s</a>',
Note: See TracChangeset
for help on using the changeset viewer.