[wp-trac] [WordPress Trac] #39968: Media Library: deleting all items on the last page loses the pagination/navigation buttons and shows message

WordPress Trac noreply at wordpress.org
Fri Jan 15 14:21:42 UTC 2021


#39968: Media Library: deleting all items on the last page loses the
pagination/navigation buttons and shows message
--------------------------+-----------------------------
 Reporter:  donsony       |       Owner:  antpb
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui
--------------------------+-----------------------------

Comment (by Mista-Flo):

 Hey guys, I have uploaded another patch that fixes the issue with filters.

 Unfortunately there are some backend logic somewhere else that prevent non
 existing pages to redirect to the last page when a filter search is made
 like with the date.

 Steps to reproduce:
 1. Go to wp-admin/upload.php
 1. Enable list mode
 1. Filter by a given month
 1. Go to page 2
 1. Then directly change the paged parameter to a random page like 56
 1. It won't show any attachment, but it does not redirect you to the last
 existing page

 So it seems to partially fix the original issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39968#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list