Skip to content

Commit

Permalink
add_query_arg() fix from majelbstoat. fixes #2326
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@3474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jan 23, 2006
1 parent 9a6867a commit 6a4f2fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,10 @@ function is_plugin_page() {
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'];
Expand Down

0 comments on commit 6a4f2fb

Please sign in to comment.