Remove an obsolete `1 == $total` check in `paginate_links()`.
`$total` cannot be a negative number since [4276]. Props jdgrimes. Fixes #38421. Built from https://develop.svn.wordpress.org/trunk@38857 git-svn-id: http://core.svn.wordpress.org/trunk@38800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
badf0925a8
commit
aa3b4f911d
|
@ -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 )
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38856';
|
||||
$wp_version = '4.7-alpha-38857';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue