trim() question marks *after* concatenating the string. fixes #4134

git-svn-id: https://develop.svn.wordpress.org/trunk@5267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-14 00:11:47 +00:00
parent 447554f758
commit 6d905c3341
2 changed files with 3 additions and 1 deletions

View File

@ -355,3 +355,5 @@ function wp_upload_admin_head() {
echo "</style>";
}
}
?>

View File

@ -826,8 +826,8 @@ function add_query_arg() {
$ret .= "$k=$v";
}
}
$ret = trim($ret, '?');
$ret = $protocol . $base . $ret . $frag;
$ret = trim($ret, '?');
return $ret;
}