From d7a828c373e9e7abfadcb6d73ef048808e4c2bf4 Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 14 Apr 2007 00:19:01 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index dbd8e0f1b..f14790828 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -826,6 +826,7 @@ function add_query_arg() { $ret .= "$k=$v"; } } + $ret = trim($ret, '?'); $ret = $protocol . $base . $ret . $frag; $ret = trim($ret, '?'); return $ret;