From 3ba71111de87ade97d9e1a5ac4acb48db7019255 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Thu, 2 Aug 2007 22:51:42 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b9b9c8d49f..2b75c70ab2 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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