Make WordPress Core

Changeset 3474


Ignore:
Timestamp:
01/23/2006 11:42:25 PM (19 years ago)
Author:
ryan
Message:

add_query_arg() fix from majelbstoat. fixes #2326

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 )
Note: See TracChangeset for help on using the changeset viewer.