WordPress.org

Make WordPress Core

Changeset 5705


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

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

File:
1 edited

Legend:

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

    r5704 r5705  
    565565    $ret = '';
    566566    if ( is_array(func_get_arg(0)) ) {
    567         if ( @func_num_args() < 2 || '' == @func_get_arg(1) )
     567        if ( @func_num_args() < 2 || false === @func_get_arg(1) )
    568568            $uri = $_SERVER['REQUEST_URI'];
    569569        else
    570570            $uri = @func_get_arg(1);
    571571    } else {
    572         if ( @func_num_args() < 3 || '' == @func_get_arg(2) )
     572        if ( @func_num_args() < 3 || false === @func_get_arg(2) )
    573573            $uri = $_SERVER['REQUEST_URI'];
    574574        else
     
    642642*/
    643643
    644 function remove_query_arg($key, $query='') {
     644function remove_query_arg($key, $query=FALSE) {
    645645    if ( is_array($key) ) { // removing multiple keys
    646646        foreach ( (array) $key as $k )
Note: See TracChangeset for help on using the changeset viewer.