mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
add_query_arg() dropped the passed in query string if the string did not contain any path elements.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
28da91c8e1
commit
1360dd85c5
@ -1908,7 +1908,11 @@ function add_query_arg() {
|
||||
else if (strstr($uri, '/')) {
|
||||
$base = $uri . '?';
|
||||
$query = '';
|
||||
} else {
|
||||
$base = '';
|
||||
$query = $uri;
|
||||
}
|
||||
|
||||
parse_str($query, $qs);
|
||||
if (is_array(func_get_arg(0))) {
|
||||
$kayvees = func_get_arg(0);
|
||||
|
Loading…
Reference in New Issue
Block a user