Fix bug in add_query_arg when url like http://example.com (no trailing slash). Props skel to the ac.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-22 03:40:28 +00:00
parent e4605c6e64
commit acf8588752
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 {