Add in another trim(), just in case $frag is actually something.

git-svn-id: https://develop.svn.wordpress.org/trunk@5269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-14 00:19:01 +00:00
parent 5184af4ae8
commit 8c25d341d9
1 changed files with 1 additions and 0 deletions

View File

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