[wp-trac] [WordPress Trac] #28334: Paginate_links : First link and previous link are break

WordPress Trac noreply at wordpress.org
Wed May 28 19:34:34 UTC 2014


#28334: Paginate_links : First link and previous link are break
-------------------------------+------------------------
 Reporter:  nexurium           |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  General            |     Version:  2.1
 Severity:  normal             |  Resolution:  duplicate
 Keywords:  reporter-feedback  |     Focuses:  template
-------------------------------+------------------------

Comment (by nexurium):

 Replying to [comment:3 kitchin]:
 > Note your first change can never branch, because 1 < $current there
 always.
 >
 > The condition `1 == $i` is correct for deciding whether to skip adding
 "?page=$i" to archive links. Maybe your bug is that thing about a blank
 last page of archives that happens sometimes, I forget why, maybe because
 of private posts??

 I'm ok,

 My first change is not good, but the condition {{{ 2 == $current }}} is
 not good too. if current is the second page the previous link must be 1
 dans not ""

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


More information about the wp-trac mailing list