Changeset 28671 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 06/05/2014 02:09:12 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r28669 r28671 2477 2477 $page_links = array(); 2478 2478 $dots = false; 2479 $base = str_replace( '%_%', $args['format'], $args['base'] ); 2479 2480 2480 2481 if ( $args['prev_next'] && $current && 1 < $current ) : 2481 $link = str_replace( '%_%', 2 == $current ? '' : $args['format'], $args['base'] ); 2482 $link = str_replace( '%#%', $current - 1, $link ); 2482 $link = str_replace( '%#%', $current - 1, $base ); 2483 2483 if ( $add_args ) 2484 2484 $link = add_query_arg( $add_args, $link ); … … 2500 2500 else : 2501 2501 if ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) : 2502 $link = str_replace( '%_%', 1 == $n ? '' : $args['format'], $args['base'] ); 2503 $link = str_replace( '%#%', $n, $link ); 2502 $link = str_replace( '%#%', $n, $base ); 2504 2503 if ( $add_args ) 2505 2504 $link = add_query_arg( $add_args, $link ); … … 2516 2515 endfor; 2517 2516 if ( $args['prev_next'] && $current && ( $current < $total || -1 == $total ) ) : 2518 $link = str_replace( '%_%', $args['format'], $args['base'] ); 2519 $link = str_replace( '%#%', $current + 1, $link ); 2517 $link = str_replace( '%#%', $current + 1, $base ); 2520 2518 if ( $add_args ) 2521 2519 $link = add_query_arg( $add_args, $link );
Note: See TracChangeset
for help on using the changeset viewer.