[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
Thu Nov 12 15:38:47 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:  closed
 Priority:  normal            |   Milestone:  5.6
Component:  Media             |     Version:  4.7.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  ui
------------------------------+---------------------
Changes (by antpb):

 * owner:  (none) => antpb
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49567" 49567]:
 {{{
 #!CommitTicketReference repository="" revision="49567"
 Media: Improve count in Media Library pagination.

 Deleting all visible items on the last page of the media library
 previously left a blank page with no media items available. Using
 `wp_count_attachements` instead of `found_posts` solves the problem.

 Props donsony, karmatosed, desrosj, mista-flo, justinahinon.

 Fixes #39968.
 }}}

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


More information about the wp-trac mailing list