Opened 14 years ago
Closed 14 years ago
#16187 closed defect (bug) (fixed)
Page Number Jumps after Bulk Action
Reported by: | hakre | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | General | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
I was on page X where X != 1, then I step down to page 1. Then I bulk delete all entries (100). After deletion I am on page 8 of 4 (?!).
Probably related to the other bulk update table navigation problems.
Attachments (4)
Change History (13)
#4
@
14 years ago
Attachments was missing the redirect that posts and comments have if paged is greater than the maximum number of pages. Did that... so that takes care of going directly to the URL. Then took the second part of greuben's patch, which should enforce it via AJAX.
Please test!
#7
@
14 years ago
We need to go through the other list tables to see where else that redirect code needs to end up.
Note: See
TracTickets for help on using
tickets.
This is a bit tricky to reproduce. I have this in Chrome with JS on.
First of all, I navigate manually to by entering the following URL into the browsers address field:
http://example.com/wp-admin/upload.php?orderby=title&order=asc&paged=8&deleted=100
You need to have at least more than one page to trigger this. In my case this will display page 8 of 7.
Then I use the arrow buttons next to the paged textbox on top of the table to move to page 1.
Even the URL in Chromes address field now has
paged=1
instead of 8, after performing a bulk action, I come back topaged=8
.(tested on wordpress.com)