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 the 3.5 branch.

--Thia and those below, will be ignored--

M    script-loader.php


git-svn-id: http://core.svn.wordpress.org/branches/3.5@23202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-26 20:29:28 +00:00
parent 912a0a4067
commit b9cd75e97a

View File

@ -700,7 +700,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";