only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9fac8dcbae
commit
99f0971b73
|
@ -627,7 +627,7 @@ function add_query_arg() {
|
||||||
}
|
}
|
||||||
$ret = trim($ret, '?');
|
$ret = trim($ret, '?');
|
||||||
$ret = $protocol . $base . $ret . $frag;
|
$ret = $protocol . $base . $ret . $frag;
|
||||||
$ret = trim($ret, '?');
|
$ret = rtrim($ret, '?');
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue