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:
Andrew Nacin 2012-12-26 20:26:19 +00:00
parent cff4199f69
commit 3486bf6668
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ function _print_scripts() {
}
$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;
echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";