Skip to content

Update pagination dots - #513

Closed
mikeybinns wants to merge 0 commit into
WordPress:masterfrom
mikeybinns:master
Closed

Update pagination dots#513
mikeybinns wants to merge 0 commit into
WordPress:masterfrom
mikeybinns:master

Conversation

@mikeybinns

Copy link
Copy Markdown

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


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant