From c82cd99e9604b2598b8d26a9f766cef29fc15d7a Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@5842 602fd350-edb4-49c9-b593-d223f7449a82 --- 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