[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
Wed Feb 10 21:52:25 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:  reopened
 Priority:  normal                           |   Milestone:  5.7
Component:  Administration                   |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch needs-dev-note commit  |     Focuses:  performance
---------------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:25 TimothyBlynJacobs]:
 > I'm not strongly opposed. But the reason I recommended it behave this
 way is that the vast majority of core `pre_` short-circuit filters I saw
 did not have their "standard" filter applied.

 Ah, good point. At a glance, there are some that immediately return
 without any other filters applied, and some that just short-circuit the
 query or heavy processing and continue to other filters. I can circle back
 after a closer review.

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


More information about the wp-trac mailing list