[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
Fri Apr 8 20:45:16 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: assigned
Priority: high | Milestone: 4.5
Component: Script Loader | Version: trunk
Severity: major | Resolution:
Keywords: has-unit-tests has-patch | Focuses:
--------------------------------------+-------------------------
Comment (by gitlost):
The above is an attempt to document the limitation with the 36392.4.patch:
One can't add inline script to scripts in the `$default_dirs` (which in
standard use are '/wp-admin/js/' and '/wp-includes/js/') if those scripts
have dependencies on each other.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36392#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list