add_query_arg() fix from majelbstoat. fixes #2326
git-svn-id: http://svn.automattic.com/wordpress/trunk@3474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a6867aa44
commit
6a4f2fbec8
|
@ -2043,7 +2043,10 @@ add_query_arg(associative_array, oldquery_or_uri)
|
||||||
function add_query_arg() {
|
function add_query_arg() {
|
||||||
$ret = '';
|
$ret = '';
|
||||||
if ( is_array(func_get_arg(0)) ) {
|
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 {
|
} else {
|
||||||
if ( @func_num_args() < 3 )
|
if ( @func_num_args() < 3 )
|
||||||
$uri = $_SERVER['REQUEST_URI'];
|
$uri = $_SERVER['REQUEST_URI'];
|
||||||
|
|
Loading…
Reference in New Issue