From 3308252f00072d5110f096907a7cc801fee31304 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 1 Sep 2007 22:12:17 +0000 Subject: [PATCH] Turn & to & in add_query_arg(). fixes #4878 git-svn-id: https://develop.svn.wordpress.org/trunk@6005 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) 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