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

WordPress Trac noreply at wordpress.org
Tue Feb 16 20:58:37 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 ocean90):

 @swissspidy In [attachment:14853.2.diff] all the code from
 [attachment:14853.diff] which handles concatenation is gone?

 For example
 {{{#!php
 <?php
 add_action( 'admin_init', function() {
         wp_add_inline_script( 'common', 'console.log("after");' );
 });
 }}}

 will print nothing.

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


More information about the wp-trac mailing list