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
This commit is contained in:
Ryan Boren 2006-06-22 03:40:28 +00:00
parent 47e795eaf0
commit 909671e026
1 changed files with 1 additions and 1 deletions

View File

@ -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 {