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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-04-14 00:11:47 +00:00
parent 62f5c944dc
commit 999e232f12
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;
}