diff -Naur a/wp-includes/option.php b/wp-includes/option.php
a
|
b
|
|
236 | 236 | |
237 | 237 | $serialized_value = maybe_serialize( $value ); |
238 | 238 | |
| 239 | do_action( 'update_option', $option, $old_value, $value ); |
239 | 240 | $result = $wpdb->update( $wpdb->options, array( 'option_value' => $serialized_value ), array( 'option_name' => $option ) ); |
240 | 241 | if ( ! $result ) |
241 | 242 | return false; |
… |
… |
|
246 | 247 | wp_cache_set( 'notoptions', $notoptions, 'options' ); |
247 | 248 | } |
248 | 249 | |
249 | | do_action( 'update_option', $option, $old_value, $value ); |
250 | 250 | if ( ! defined( 'WP_INSTALLING' ) ) { |
251 | 251 | $alloptions = wp_load_alloptions(); |
252 | 252 | if ( isset( $alloptions[$option] ) ) { |