[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
Tue Dec 1 04:54:44 UTC 2020


#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:  5.6
Component:  Media             |     Version:  4.7.2
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  ui
------------------------------+-----------------------

Comment (by peterwilsoncc):

 I've been able to reproduce this with @trepmal's steps above

 * upload media over the course of two or more months (you might need to
 mess with server time to do this, or run a production server on RC1)
 * view media library list view
 * in pagination, note the number of items and max pages displayed
 * limit images to a single month
 * observe neither of the number have changed in the pagination section

 I suggest reverting [49567].

 Filtering either via the admin or using WP_Query seems less of an edge
 case than deleting all the images on the final page.

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


More information about the wp-trac mailing list