From db62c488971e86648593af400bf14d177dbb3d0e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 1 Apr 2005 05:42:46 +0000 Subject: [PATCH] add_query_arg() dropped the passed in query string if the string did not contain any path elements. git-svn-id: https://develop.svn.wordpress.org/trunk@2506 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index d1083787c7..4ef9227c9f 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1908,7 +1908,11 @@ function add_query_arg() { else if (strstr($uri, '/')) { $base = $uri . '?'; $query = ''; + } else { + $base = ''; + $query = $uri; } + parse_str($query, $qs); if (is_array(func_get_arg(0))) { $kayvees = func_get_arg(0);