mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Allow update_site_option to add false-y values. Fixes #15497
git-svn-id: https://develop.svn.wordpress.org/trunk@18589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
Reference in New Issue
Block a user