[wp-trac] [WordPress Trac] #36392: wp_add_inline_script() breaks script dependency order when using script loader (no SCRIPT_DEBUG)

WordPress Trac noreply at wordpress.org
Sun Apr 10 03:32:49 UTC 2016


#36392: wp_add_inline_script() breaks script dependency order when using script
loader (no SCRIPT_DEBUG)
---------------------------------------------+-------------------------
 Reporter:  westonruter                      |       Owner:  swissspidy
     Type:  defect (bug)                     |      Status:  closed
 Priority:  high                             |   Milestone:  4.5
Component:  Script Loader                    |     Version:  trunk
 Severity:  major                            |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by jeremyfelt):

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


Comment:

 In [changeset:"37171"]:
 {{{
 #!CommitTicketReference repository="" revision="37171"
 Ensure consistent dependency order when using `wp_add_inline_script()`

 This disables the concatenation of remaining enqueued scripts once
 `wp_add_inline_script()` is invoked, which allows us to reliably print
 these scripts and their before/after inline scripts in the desired order.

 Props gitlost, azaozz, swisspidy, ocean90.
 Fixes #36392.
 }}}

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


More information about the wp-trac mailing list