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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-04-14 00:19:01 +00:00
parent 8d26c9e4b1
commit d7a828c373
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;