Make WordPress Core

Changeset 5706


Ignore:
Timestamp:
06/14/2007 05:12:59 AM (17 years ago)
Author:
markjaquith
Message:

use FALSE to designate lack of user-supplied URL in *_query_arg() funcs. fixes #4465 for 2.2.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/functions.php

    r5703 r5706  
    762762    $ret = '';
    763763    if ( is_array(func_get_arg(0)) ) {
    764         if ( @func_num_args() < 2 || '' == @func_get_arg(1) )
     764        if ( @func_num_args() < 2 || false === @func_get_arg(1) )
    765765            $uri = $_SERVER['REQUEST_URI'];
    766766        else
    767767            $uri = @func_get_arg(1);
    768768    } else {
    769         if ( @func_num_args() < 3 || '' == @func_get_arg(2) )
     769        if ( @func_num_args() < 3 || false === @func_get_arg(2) )
    770770            $uri = $_SERVER['REQUEST_URI'];
    771771        else
     
    839839*/
    840840
    841 function remove_query_arg($key, $query='') {
     841function remove_query_arg($key, $query=FALSE) {
    842842    if ( is_array($key) ) { // removing multiple keys
    843843        foreach ( (array) $key as $k )
Note: See TracChangeset for help on using the changeset viewer.