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:
parent
7213d24276
commit
c06290958b
|
@ -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() ) {
|
||||||
|
|
Loading…
Reference in New Issue