Changeset 3474

Show
Ignore:
Timestamp:
01/23/06 23:42:25 (3 years ago)
Author:
ryan
Message:

add_query_arg() fix from majelbstoat. fixes #2326

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions.php

    r3468 r3474  
    20442044    $ret = ''; 
    20452045    if ( is_array(func_get_arg(0)) ) { 
    2046         $uri = @func_get_arg(1); 
     2046        if ( @func_num_args() < 2 ) 
     2047            $uri = $_SERVER['REQUEST_URI']; 
     2048        else 
     2049            $uri = @func_get_arg(1); 
    20472050    } else { 
    20482051        if ( @func_num_args() < 3 )