mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -998,10 +998,6 @@ function _print_scripts() {
|
||||
echo "</script>\n";
|
||||
}
|
||||
|
||||
if ( ! empty( $wp_scripts->print_html_before ) ) {
|
||||
echo $wp_scripts->print_html_before;
|
||||
}
|
||||
|
||||
$concat = str_split( $concat, 128 );
|
||||
$concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user