Changeset 59606
- Timestamp:
- 01/15/2025 12:50:48 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r59471 r59606 4580 4580 4581 4581 if ( $args['prev_next'] && $current && 1 < $current ) : 4582 $link = str_replace( '%_%', 2 == $current ? '' : $args['format'], $args['base'] );4582 $link = str_replace( '%_%', 2 === $current ? '' : $args['format'], $args['base'] ); 4583 4583 $link = str_replace( '%#%', $current - 1, $link ); 4584 4584 if ( $add_args ) { … … 4602 4602 4603 4603 for ( $n = 1; $n <= $total; $n++ ) : 4604 if ( $n == $current ) :4604 if ( $n === $current ) : 4605 4605 $page_links[] = sprintf( 4606 4606 '<span aria-current="%s" class="page-numbers current">%s</span>', … … 4612 4612 else : 4613 4613 if ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) : 4614 $link = str_replace( '%_%', 1 == $n ? '' : $args['format'], $args['base'] );4614 $link = str_replace( '%_%', 1 === $n ? '' : $args['format'], $args['base'] ); 4615 4615 $link = str_replace( '%#%', $n, $link ); 4616 4616 if ( $add_args ) {
Note: See TracChangeset
for help on using the changeset viewer.