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 {