[wp-trac] [WordPress Trac] #14853: wp_add_inline_script()

WordPress Trac noreply at wordpress.org
Tue Feb 23 16:43:43 UTC 2016

#14853: wp_add_inline_script()
 Reporter:  mattwiebe                        |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.5
Component:  Script Loader                    |     Version:  3.1
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
Changes (by swissspidy):

 * status:  accepted => closed
 * resolution:   => fixed


 In [changeset:"36633"]:
 #!CommitTicketReference repository="" revision="36633"
 Script Loader: Introduce `wp_add_inline_script()`.

 This new function can be used to add inline JavaScript before and after
 enqueued scripts, just like `wp_add_inline_style()` works for CSS.

 Props atimmer, abiralneupane, ocean90, swissspidy.
 Fixes #14853.

Ticket URL: <https://core.trac.wordpress.org/ticket/14853#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list