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:
parent
f359dab72e
commit
3ba71111de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue