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
This commit is contained in:
duck_ 2011-08-23 21:12:14 +00:00
parent 7213d24276
commit c06290958b
1 changed files with 1 additions and 1 deletions

View File

@ -3886,7 +3886,7 @@ function update_site_option( $option, $value ) {
if ( $value === $oldvalue ) if ( $value === $oldvalue )
return false; return false;
if ( $value && false === $oldvalue ) if ( false === $oldvalue )
return add_site_option( $option, $value ); return add_site_option( $option, $value );
if ( !is_multisite() ) { if ( !is_multisite() ) {