add_query_arg() fix from majelbstoat. fixes #2326
git-svn-id: https://develop.svn.wordpress.org/trunk@3474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
28bd6692a0
commit
017660016b
@ -2043,7 +2043,10 @@ add_query_arg(associative_array, oldquery_or_uri)
|
||||
function add_query_arg() {
|
||||
$ret = '';
|
||||
if ( is_array(func_get_arg(0)) ) {
|
||||
$uri = @func_get_arg(1);
|
||||
if ( @func_num_args() < 2 )
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
else
|
||||
$uri = @func_get_arg(1);
|
||||
} else {
|
||||
if ( @func_num_args() < 3 )
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
|
Loading…
Reference in New Issue
Block a user