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

git-svn-id: https://develop.svn.wordpress.org/trunk@6005 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-01 22:12:17 +00:00
parent 9fb2ddc65f
commit 3308252f00
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