Turn & to & in add_query_arg(). fixes #4878

git-svn-id: http://svn.automattic.com/wordpress/trunk@6005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-01 22:12:17 +00:00
parent b04e8d39ee
commit d60384b385
1 changed files with 2 additions and 0 deletions

View File

@ -606,6 +606,8 @@ function add_query_arg() {
$uri = @func_get_arg(2);
}
$uri = str_replace('&', '&', $uri);
if ( $frag = strstr($uri, '#') )
$uri = substr($uri, 0, -strlen($frag));
else