|
@@ 1275-1278 (lines=4) @@
|
| 1272 |
|
|
| 1273 |
|
// This option exists now |
| 1274 |
|
$notoptions = wp_cache_get( $notoptions_key, 'site-options' ); // yes, again... we need it to be fresh |
| 1275 |
|
if ( is_array( $notoptions ) && isset( $notoptions[ $option ] ) ) { |
| 1276 |
|
unset( $notoptions[ $option ] ); |
| 1277 |
|
wp_cache_set( $notoptions_key, $notoptions, 'site-options' ); |
| 1278 |
|
} |
| 1279 |
|
} |
| 1280 |
|
|
| 1281 |
|
if ( $result ) { |
|
@@ 1462-1465 (lines=4) @@
|
| 1459 |
|
|
| 1460 |
|
$notoptions_key = "$network_id:notoptions"; |
| 1461 |
|
$notoptions = wp_cache_get( $notoptions_key, 'site-options' ); |
| 1462 |
|
if ( is_array( $notoptions ) && isset( $notoptions[ $option ] ) ) { |
| 1463 |
|
unset( $notoptions[ $option ] ); |
| 1464 |
|
wp_cache_set( $notoptions_key, $notoptions, 'site-options' ); |
| 1465 |
|
} |
| 1466 |
|
|
| 1467 |
|
if ( ! is_multisite() ) { |
| 1468 |
|
$result = update_option( $option, $value, 'no' ); |