[wp-trac] [WordPress Trac] #38421: Remove impossible check for `-1 == $total` from paginate_links()

WordPress Trac noreply at wordpress.org
Fri Oct 21 10:45:24 UTC 2016


#38421: Remove impossible check for `-1 == $total` from paginate_links()
--------------------------+-----------------------------
 Reporter:  jdgrimes      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  Formatting    |     Version:  2.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38857"]:
 {{{
 #!CommitTicketReference repository="" revision="38857"
 Remove an obsolete `1 == $total` check in `paginate_links()`.

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

 Props jdgrimes.
 Fixes #38421.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38421#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list