From d60384b3855f772492f338cef6e0c5ab9968766a Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sat, 1 Sep 2007 22:12:17 +0000 Subject: [PATCH] Turn & to & in add_query_arg(). fixes #4878 git-svn-id: http://svn.automattic.com/wordpress/trunk@6005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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