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:
parent
e4605c6e64
commit
acf8588752
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue