[wp-trac] [WordPress Trac] #31789: Themes: allow a pre filter in `wp_prepare_themes_for_js()`

WordPress Trac noreply at wordpress.org
Tue Apr 21 05:30:24 UTC 2015


#31789: Themes: allow a pre filter in `wp_prepare_themes_for_js()`
------------------------------+-----------------------------
 Reporter:  mattwiebe         |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.2
Component:  Themes            |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  performance
------------------------------+-----------------------------

Comment (by nacin):

 This is one of only two filters that are named `pre_wp_*`. (The other is
 `pre_wp_nav_menu`.) Of the 140 or so filters that start with `wp_` do not
 have corresponding `pre_` (no `pre_wp_`) filters. So while the only
 precedent is `pre_wp_nav_menu`, it feels *really* weird. Anyone against
 `pre_prepare_themes_for_js`? @sergeybiryukov @drewapicture @mattwiebe

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


More information about the wp-trac mailing list