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,6 +2043,9 @@ add_query_arg(associative_array, oldquery_or_uri)
|
|||
function add_query_arg() {
|
||||
$ret = '';
|
||||
if ( is_array(func_get_arg(0)) ) {
|
||||
if ( @func_num_args() < 2 )
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
else
|
||||
$uri = @func_get_arg(1);
|
||||
} else {
|
||||
if ( @func_num_args() < 3 )
|
||||
|
|
Loading…
Reference in New Issue