diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 3a95d0128a..d83ea814e3 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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