mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user