Encode brackets in the load-scripts.php URL, as these are considered unsafe characters and can be misunderstood. (See RFC 1738.) In particular, a "security" rewrite rule from a plugin blocked URLs with unencoded brackets. fixes #22899 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23201 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cff4199f69
commit
3486bf6668
|
@ -703,7 +703,7 @@ function _print_scripts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$concat = str_split( $concat, 128 );
|
$concat = str_split( $concat, 128 );
|
||||||
$concat = 'load[]=' . implode( '&load[]=', $concat );
|
$concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat );
|
||||||
|
|
||||||
$src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&" . $concat . '&ver=' . $wp_scripts->default_version;
|
$src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&" . $concat . '&ver=' . $wp_scripts->default_version;
|
||||||
echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";
|
echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";
|
||||||
|
|
Loading…
Reference in New Issue