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:
Sergey Biryukov 2016-10-21 10:46:29 +00:00
parent badf0925a8
commit aa3b4f911d
2 changed files with 2 additions and 2 deletions

View File

@ -3324,7 +3324,7 @@ function paginate_links( $args = '' ) {
endif; endif;
endif; endif;
endfor; 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( '%_%', $args['format'], $args['base'] );
$link = str_replace( '%#%', $current + 1, $link ); $link = str_replace( '%#%', $current + 1, $link );
if ( $add_args ) if ( $add_args )

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.