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

WordPress Trac noreply at wordpress.org
Sun Feb 21 18:57:22 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:
--------------------------------------+-------------------------
Changes (by swissspidy):

 * keywords:  has-patch has-unit-tests needs-refresh => has-patch has-unit-
     tests


Comment:

 [attachment:14853.4.diff] is a new patch properly taking into account
 concatenated scripts in the admin.

 Inline scripts are properly inserted after and before the handle (but
 after l10n scripts). If a script has a conditional comment, it's not
 concatenated just as before, with the inline scripts printed in the right
 order.

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


More information about the wp-trac mailing list