Changeset 61454 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 01/09/2026 02:38:07 AM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/general-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r61411 r61454 4659 4659 4660 4660 // Get max pages and current page out of the current query, if available. 4661 $total = isset( $wp_query->max_num_pages ) ? $wp_query->max_num_pages :1;4661 $total = $wp_query->max_num_pages ?? 1; 4662 4662 $current = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1; 4663 4663 … … 4698 4698 // Find the format argument. 4699 4699 $format = explode( '?', str_replace( '%_%', $args['format'], $args['base'] ) ); 4700 $format_query = isset( $format[1] ) ? $format[1] :'';4700 $format_query = $format[1] ?? ''; 4701 4701 wp_parse_str( $format_query, $format_args ); 4702 4702
Note: See TracChangeset
for help on using the changeset viewer.