From 8c25d341d9327a8f8c3c53a2b455f27a738eda0c 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: https://develop.svn.wordpress.org/trunk@5269 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index dbd8e0f1bc..f14790828d 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;