[wp-trac] [WordPress Trac] #41675: Add filter to bypass display/query for Media Months filter in media modal

WordPress Trac noreply at wordpress.org
Fri Sep 1 10:13:24 UTC 2017


#41675: Add filter to bypass display/query for Media Months filter in media modal
--------------------------------------+------------------------------
 Reporter:  CrazyJaco                 |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  performance
--------------------------------------+------------------------------
Changes (by herregroen):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch


Comment:

 Just added a patch which adds a 'media_library_show_months_select' filter
 which returns a boolean determining whether or not to show the months
 select. Returning `false` will not mean 'media_library_months_with_files'
 filter is not run and the default query is not run either.

 In the browser the months select and it's accompanying accessibility label
 are not rendered if `false` is returned.

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


More information about the wp-trac mailing list