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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-08-02 22:51:42 +00:00
parent f359dab72e
commit 3ba71111de
1 changed files with 1 additions and 1 deletions

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