|
@@ 352-360 (lines=9) @@
|
| 349 |
|
wp_cache_set( 'notoptions', $notoptions, 'options' ); |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
if ( ! wp_installing() ) { |
| 353 |
|
$alloptions = wp_load_alloptions(); |
| 354 |
|
if ( isset( $alloptions[$option] ) ) { |
| 355 |
|
$alloptions[ $option ] = $serialized_value; |
| 356 |
|
wp_cache_set( 'alloptions', $alloptions, 'options' ); |
| 357 |
|
} else { |
| 358 |
|
wp_cache_set( $option, $serialized_value, 'options' ); |
| 359 |
|
} |
| 360 |
|
} |
| 361 |
|
|
| 362 |
|
/** |
| 363 |
|
* Fires after the value of a specific option has been successfully updated. |
|
@@ 453-461 (lines=9) @@
|
| 450 |
|
if ( ! $result ) |
| 451 |
|
return false; |
| 452 |
|
|
| 453 |
|
if ( ! wp_installing() ) { |
| 454 |
|
if ( 'yes' == $autoload ) { |
| 455 |
|
$alloptions = wp_load_alloptions(); |
| 456 |
|
$alloptions[ $option ] = $serialized_value; |
| 457 |
|
wp_cache_set( 'alloptions', $alloptions, 'options' ); |
| 458 |
|
} else { |
| 459 |
|
wp_cache_set( $option, $serialized_value, 'options' ); |
| 460 |
|
} |
| 461 |
|
} |
| 462 |
|
|
| 463 |
|
// This option exists now |
| 464 |
|
$notoptions = wp_cache_get( 'notoptions', 'options' ); // yes, again... we need it to be fresh |
|
@@ 529-539 (lines=11) @@
|
| 526 |
|
do_action( 'delete_option', $option ); |
| 527 |
|
|
| 528 |
|
$result = $wpdb->delete( $wpdb->options, array( 'option_name' => $option ) ); |
| 529 |
|
if ( ! wp_installing() ) { |
| 530 |
|
if ( 'yes' == $row->autoload ) { |
| 531 |
|
$alloptions = wp_load_alloptions(); |
| 532 |
|
if ( is_array( $alloptions ) && isset( $alloptions[$option] ) ) { |
| 533 |
|
unset( $alloptions[$option] ); |
| 534 |
|
wp_cache_set( 'alloptions', $alloptions, 'options' ); |
| 535 |
|
} |
| 536 |
|
} else { |
| 537 |
|
wp_cache_delete( $option, 'options' ); |
| 538 |
|
} |
| 539 |
|
} |
| 540 |
|
if ( $result ) { |
| 541 |
|
|
| 542 |
|
/** |