From 909671e026d9694cbd059b69b865636bfd71d605 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 22 Jun 2006 03:40:28 +0000 Subject: [PATCH] Fix bug in add_query_arg when url like http://example.com (no trailing slash). Props skel to the ac. git-svn-id: https://develop.svn.wordpress.org/trunk@3897 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 4e5e43b702..2b2849c573 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -700,7 +700,7 @@ function add_query_arg() { $base = $parts[0] . '?'; $query = $parts[1]; } - } else if ( strstr($uri, '/') ) { + } else if ( !empty($protocol) || strstr($uri, '/') ) { $base = $uri . '?'; $query = ''; } else {