Make WordPress Core


Ignore:
Timestamp:
10/21/2016 10:45:21 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Remove an obsolete 1 == $total check in paginate_links().

$total cannot be a negative number since [4276].

Props jdgrimes.
Fixes #38421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r38849 r38857  
    33253325        endif;
    33263326    endfor;
    3327     if ( $args['prev_next'] && $current && ( $current < $total || -1 == $total ) ) :
     3327    if ( $args['prev_next'] && $current && $current < $total ) :
    33283328        $link = str_replace( '%_%', $args['format'], $args['base'] );
    33293329        $link = str_replace( '%#%', $current + 1, $link );
Note: See TracChangeset for help on using the changeset viewer.