[wp-trac] [WordPress Trac] #31789: Themes: allow a pre filter in `wp_prepare_themes_for_js()`
WordPress Trac
noreply at wordpress.org
Mon Mar 30 20:01:59 UTC 2015
#31789: Themes: allow a pre filter in `wp_prepare_themes_for_js()`
-------------------------+--------------------------
Reporter: mattwiebe | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.2
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
-------------------------+--------------------------
Comment (by DrewAPicture):
[attachment:31789.2.diff] refines the approach a little bit and adjusts
the filter docs for core style:
* Docs: summary updated: what is filterable, not why
* Docs: removes the justification, e.g. "allows you to do X because of X",
as every use case is different
* Docs: Remove the `@return` (unused in hook docs)
* Simplifies the code by just passing an empty array to the filter
* Simplify setting the current theme as the first key (since we know it's
an array).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31789#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list