WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 8 months ago

#39968 new defect (bug)

Media Library: deleting all items on the last page loses the pagination/navigation buttons and shows message

Reported by: donsony Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.7.2
Component: Media Keywords: needs-patch
Focuses: ui Cc:

Description

While deleting all items on the last page of Media Library, the page loses the pagination/navigation buttons and shows the message "No Media Files found" with no way to access the earlier pages other than by going back to the "Media" link

Attachments (1)

Screen Shot 2018-12-20 at 3.09.37 PM.png (122.6 KB) - added by antpb 8 months ago.
illustration of the behavior

Download all attachments as: .zip

Change History (5)

#1 @karmatosed
2 years ago

  • Summary changed from Media Library to Media Library: deleting all items on the last page loses the pagination/navigation buttons and shows message

This ticket was mentioned in Slack in #core-media by mike. View the logs.


8 months ago

@antpb
8 months ago

illustration of the behavior

#3 @antpb
8 months ago

I've added an illustration of the behavior above, we have two options here that @desrosj outlined in the recent #core-media meeting:

"I would either return the user to page 1, or, send them to the _new_ last page."

#4 @desrosj
8 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

I looked at how other admin areas handle this. This is what I found:

  • Posts: reloads the page with paged - 1 (new last page).
  • Categories: reloads the page with paged - 1 (new last page).
  • Users: This flow is a bit different because there is a confirmation page in between. But, the user is always returned to the first page of users after deleting users.

My vote is to keep things consistent with the other post and term areas in core and redirect the user to the new last page (paged-1).

Note: See TracTickets for help on using tickets.