Opened 4 years ago
Last modified 4 years ago
#51227 new enhancement
Update paginate_links dots to account for total pages
Reported by: | mikeybinns | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | trivial | Version: | 5.5.1 |
Component: | General | Keywords: | has-patch needs-testing |
Focuses: | ui, template | Cc: |
Description
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.
Change History (1)
This ticket was mentioned in PR #513 on WordPress/wordpress-develop by mikeybinnswebdesign.
4 years ago
#1
Note: See
TracTickets for help on using
tickets.
Currently, under certain conditions the pagination shows dots when it would make more sense to show a number.
This change updates such an edge case.
# 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
Trac ticket: https://core.trac.wordpress.org/ticket/51227