[wp-trac] [WordPress Trac] #14853: wp_add_inline_script()
WordPress Trac
noreply at wordpress.org
Sat Jan 16 12:15:20 UTC 2016
#14853: wp_add_inline_script()
--------------------------------------+-------------------------
Reporter: mattwiebe | Owner: swissspidy
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.5
Component: Script Loader | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-------------------------
Comment (by swissspidy):
> > This would also be useful for doing the `jQuery.noConflict()` call
when using an external jQuery.
>
> I'm hoping to move that call out of our bundled jQuery and into a second
script on of these days :-)
With the current patch, this would be as easy as calling
`$scripts->add_inline_script( 'jquery-core', 'jQuery.noConflict();' );` in
`script-loader.php`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14853#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list