[wp-trac] [WordPress Trac] #53765: Media Library shows only the selected image

WordPress Trac noreply at wordpress.org
Wed Nov 17 18:15:56 UTC 2021


#53765: Media Library shows only the selected image
-------------------------------------------------+-------------------------
 Reporter:  benitolopez                          |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.9
Component:  Media                                |     Version:  5.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch reporter-feedback needs-   |     Focuses:  javascript
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by szaqal21):

 Yes exactly. If there would be more attachments (lets say 300) they would
 be loaded more and more (80 -> 160 -> 240 -> ...). This bug doesn't exist
 when posts_per_page is lower than 80, example attached with posts_per_page
 = 40


 {{{
 add_filter( 'ajax_query_attachments_args', 'change_posts_per_page', 10, 1
 );

 function change_posts_per_page($args)
 {
         $args['posts_per_page'] = 40;

         return $args;
 }
 }}}

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


More information about the wp-trac mailing list