mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Get add_query_arg() to urlencode all values of parse_str array. Props mdawaffe. fixes #4084
git-svn-id: https://develop.svn.wordpress.org/trunk@5261 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -808,6 +808,7 @@ function add_query_arg() {
|
||||
parse_str($query, $qs);
|
||||
if ( get_magic_quotes_gpc() )
|
||||
$qs = stripslashes_deep($qs); // parse_str() adds slashes if magicquotes is on. See: http://php.net/parse_str
|
||||
$qs = urlencode_deep($qs);
|
||||
if ( is_array(func_get_arg(0)) ) {
|
||||
$kayvees = func_get_arg(0);
|
||||
$qs = array_merge($qs, $kayvees);
|
||||
|
||||
Reference in New Issue
Block a user