Remove an obsolete 1 == $total
check in paginate_links()
.
`$total` cannot be a negative number since [4276]. Props jdgrimes. Fixes #38421. git-svn-id: https://develop.svn.wordpress.org/trunk@38857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5224e2bd84
commit
e7d639345f
@ -3324,7 +3324,7 @@ function paginate_links( $args = '' ) {
|
||||
endif;
|
||||
endif;
|
||||
endfor;
|
||||
if ( $args['prev_next'] && $current && ( $current < $total || -1 == $total ) ) :
|
||||
if ( $args['prev_next'] && $current && $current < $total ) :
|
||||
$link = str_replace( '%_%', $args['format'], $args['base'] );
|
||||
$link = str_replace( '%#%', $current + 1, $link );
|
||||
if ( $add_args )
|
||||
|
Loading…
Reference in New Issue
Block a user