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

git-svn-id: https://develop.svn.wordpress.org/trunk@5842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-08-02 22:51:42 +00:00
parent 671c99b492
commit c82cd99e96

View File

@ -183,7 +183,7 @@ function get_option($setting) {
// Allow plugins to short-circuit options.
$pre = apply_filters( 'pre_option_' . $setting, false );
if ( $pre )
if ( false !== $pre )
return $pre;
// prevent non-existent options from triggering multiple queries