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:
parent
f66d6581a7
commit
4c849e806f
@ -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() ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user