[wp-trac] [WordPress Trac] #51227: Update paginate_links dots to account for total pages

WordPress Trac noreply at wordpress.org
Thu Sep 3 00:06:12 UTC 2020


#51227: Update paginate_links dots to account for total pages
--------------------------+-------------------------------------
 Reporter:  mikeybinns    |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.5.1
 Severity:  trivial       |   Keywords:  has-patch needs-testing
  Focuses:  ui, template  |
--------------------------+-------------------------------------
 Currently, under certain conditions the pagination shows dots when it
 would make more sense to show a number.

 Example:
 If you have the following variables:
 {{{
 Mid size: 2
 End size: 1
 Total pages: 5
 Current page: 1
 }}}
 Then it will visually output as follows:

 {{{
 Prev 1 2 3 ... 5 Next
 }}}

 With current changed to 5 then it will show dots at 2 instead.


 In this case, it would make more sense to show the number instead of dots.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51227>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list