[wp-trac] [WordPress Trac] #20513: Refactor $wp_scripts init checking code
WordPress Trac
noreply at wordpress.org
Fri Jan 16 02:06:06 UTC 2015
#20513: Refactor $wp_scripts init checking code
-------------------------------------+-----------------------------
Reporter: GaryJ | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.2
Component: Script Loader | Version: 3.4
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31192"]:
{{{
#!CommitTicketReference repository="" revision="31192"
`functions.wp-scripts.php` contains a lot of duplicated code. Make 2 new
functions: `wp_scripts()` and `wp_scripts_maybe_doing_it_wrong( $function
)`, to encapsulate the repeated logic.
Props GaryJ, scribu, wonderboymusic.
Fixes #20513.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20513#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list