[wp-trac] [WordPress Trac] #31789: Themes: allow a pre filter in `wp_prepare_themes_for_js()`
WordPress Trac
noreply at wordpress.org
Fri Mar 27 18:14:49 UTC 2015
#31789: Themes: allow a pre filter in `wp_prepare_themes_for_js()`
-------------------------+-----------------------------
Reporter: mattwiebe | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
On a site like WordPress.com which has ~450 themes,
`wp_prepare_themes_for_js()` is very slow. Unfortunately there isn't a
`pre_` filter that lets us short-circuit the manual labour every time it's
called. Fortunately adding one is easy!
This becomes more important in the context of theme browsing in the
Customizer, which needs to call this every time a different theme is
previewed there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31789>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list