WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#16162 closed defect (bug)

Pagination and sorting reset after bulk media deletion — at Version 6

Reported by: hakre Owned by: scribu
Milestone: 4.1 Priority: normal
Severity: normal Version: 3.1
Component: Administration Keywords: has-patch
Focuses: administration Cc:

Description (last modified by scribu)

When doing Bulk Deletes on paginated Media Library, after performing the delete, I'm back on page 1 regardless on which page I've been before.

Change History (7)

comment:1 @ocean904 years ago

  • Component changed from General to Administration

Related: #15416

comment:2 @ocean904 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 3.1
  • Owner set to scribu
  • Status changed from new to reviewing

Same for categories and tags page. If we have it for posts and comments (#15416), we should add it with the other pages too.

Last edited 4 years ago by ocean90 (previous) (diff)

comment:3 @hakre4 years ago

I was able to reproduce against latest trunk.

comment:4 @hakre4 years ago

It does not reflect the sort column as well.

paged is part of the request, orderby and order are not.

Last edited 4 years ago by hakre (previous) (diff)

@hakre4 years ago

preserve paged

comment:5 @hakre4 years ago

The patch preserves paged for bulk media deletes. sorting is not preserved as it does not gets passed in the request.

The idea I had so far is to add hidden form fields or to change the forms action attribute when things are changed by javascript.

The only hotfix I know of so far is to disable javascript which makes one of the biggest improvements of 3.1 looking pretty reduced.

comment:6 @scribu4 years ago

  • Description modified (diff)
  • Summary changed from Bulk Actions and Pagination: Page Lost to Pagination and sorting reset after bulk media deletion
Note: See TracTickets for help on using tickets.