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:
parent
47e795eaf0
commit
909671e026
@ -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…
x
Reference in New Issue
Block a user