only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5704 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb1518f95e
commit
e542bbdde1
@ -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…
x
Reference in New Issue
Block a user