Changeset 5842

Show
Ignore:
Timestamp:
08/02/07 22:51:42 (1 year ago)
Author:
markjaquith
Message:

Allow pre_option_ filters to return values that evaluate as false. fixes #4695

Files:

Legend:

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

    r5829 r5842  
    184184    // Allow plugins to short-circuit options. 
    185185    $pre = apply_filters( 'pre_option_' . $setting, false );  
    186     if ( $pre )  
     186    if ( false !== $pre )  
    187187        return $pre;  
    188188