[wp-trac] [WordPress Trac] #53787: Allow changing number of attachments displayed

WordPress Trac noreply at wordpress.org
Mon Jul 26 16:44:22 UTC 2021


#53787: Allow changing number of attachments displayed
--------------------------------------------+-----------------------------
 Reporter:  grapplerulrich                  |      Owner:  (none)
     Type:  enhancement                     |     Status:  new
 Priority:  normal                          |  Milestone:  Awaiting Review
Component:  Media                           |    Version:  5.8
 Severity:  normal                          |   Keywords:
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------------
 #50105 introduced a new load more button to replace infinite scroll for
 media library.

 In the initial version the number of [https://github.com/WordPress
 /wordpress-
 develop/blob/18ebf26bc3787e8ccc03438bd8375e4828030ca9/src/js/media/models/query.js#L174|posts
 per page is set in the code to 40].

 In #50105 was discussed adding a filter to make it developer customizable.
 There are use cases for having more or less than the default 40. This
 should apply for the initial and later requests.

 In a second step:
 > It would be nice if this were user controllable like posts per page, or
 terms per page are from the screen options tab. We would need to integrate
 this into the modal itself though since it operates in numerous contexts.
 [https://core.trac.wordpress.org/timeline?from=2021-02-07T04%3A28%3A43%2B01%3A00&precision=second|Quote
 from @adamsilverstein]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53787>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list