From c06290958b46dff07743da21498f4cdc4289d6cc Mon Sep 17 00:00:00 2001 From: duck_ Date: Tue, 23 Aug 2011 21:12:14 +0000 Subject: [PATCH] Allow update_site_option to add false-y values. Fixes #15497 git-svn-id: http://svn.automattic.com/wordpress/trunk@18589 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 d99153ed71..8897139eab 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3886,7 +3886,7 @@ function update_site_option( $option, $value ) { if ( $value === $oldvalue ) return false; - if ( $value && false === $oldvalue ) + if ( false === $oldvalue ) return add_site_option( $option, $value ); if ( !is_multisite() ) {