[wp-trac] [WordPress Trac] #40791: paginate_links outputs unnecessary dots
WordPress Trac
noreply at wordpress.org
Wed May 17 19:46:56 UTC 2017
#40791: paginate_links outputs unnecessary dots
-------------------------------+-----------------------------
Reporter: rphelan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.5
Severity: normal | Keywords:
Focuses: ui, accessibility |
-------------------------------+-----------------------------
== Steps to reproduce: ==
A) Call paginate_links with current=2, total=6
B) Call paginate_links with current=5, total=6
(assume defaults for everything else: mid_size=2, end_size=1,
show_all=false)
== Actual results: ==
A) `[1] ... [3] [4] [5] [6]`
B) `[1] [2] [3] [4] ... [6]`
The output includes dots that are unnecessary because they are taking up
space that an actual page link could occupy.
== Expected results: ==
A) `[1] [2] [3] [4] [5] [6]`
B) `[1] [2] [3] [4] [5] [6]`
When `total <= mid_size + end_size * 2 + 2`, no dots should be included in
the pagination output.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40791>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list