Make WordPress Core

Changeset 25925


Ignore:
Timestamp:
10/26/2013 02:56:24 AM (11 years ago)
Author:
nacin
Message:

In update_option(), call the update_option hook before the DB update.

Reverses a regression from [25664].

props calin.
fixes #25705 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r25664 r25925  
    237237    $serialized_value = maybe_serialize( $value );
    238238
     239    do_action( 'update_option', $option, $old_value, $value );
    239240    $result = $wpdb->update( $wpdb->options, array( 'option_value' => $serialized_value ), array( 'option_name' => $option ) );
    240241    if ( ! $result )
     
    247248    }
    248249
    249     do_action( 'update_option', $option, $old_value, $value );
    250250    if ( ! defined( 'WP_INSTALLING' ) ) {
    251251        $alloptions = wp_load_alloptions();
Note: See TracChangeset for help on using the changeset viewer.