[wp-trac] [WordPress Trac] #51660: Adding a filter to WP_List_Table::months_dropdown() to allow overriding the list of months displayed

WordPress Trac noreply at wordpress.org
Mon Feb 1 14:53:17 UTC 2021


#51660: Adding a filter to WP_List_Table::months_dropdown() to allow overriding the
list of months displayed
--------------------------------------+-----------------------------
 Reporter:  geoffguillain             |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  reviewing
 Priority:  normal                    |   Milestone:  5.7
Component:  Administration            |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:  performance
--------------------------------------+-----------------------------

Comment (by hellofromTonya):

 Adding a code suggestion to the PR https://github.com/WordPress/wordpress-
 develop/pull/767#discussion_r567882010:

 The 1st argument passed to `apply_filters` should be the value being
 filtered. In this case, the filter is filtering months, not the post type.

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


More information about the wp-trac mailing list