mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-30 20:08:34 +00:00
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] . '?';
|
$base = $parts[0] . '?';
|
||||||
$query = $parts[1];
|
$query = $parts[1];
|
||||||
}
|
}
|
||||||
} else if ( strstr($uri, '/') ) {
|
} else if ( !empty($protocol) || strstr($uri, '/') ) {
|
||||||
$base = $uri . '?';
|
$base = $uri . '?';
|
||||||
$query = '';
|
$query = '';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user