From a2afc64e79eb9f07d056958089e68f5349a0dcdf Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 4 Sep 2007 05:26:18 +0000 Subject: [PATCH] Actually, let's just drop that slash check altogether. Equals sign is the best indicator. fixes #4903 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@6031 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 15589fe744..f5e56d4ea7 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -627,7 +627,7 @@ function add_query_arg() { $base = $parts[0] . '?'; $query = $parts[1]; } - } elseif (!empty($protocol) || ( strpos($uri, '/') !== false && strpos($uri, '=') === false ) ) { + } elseif (!empty($protocol) || strpos($uri, '=') === false ) { $base = $uri . '?'; $query = ''; } else {