Make WordPress Core

Changeset 25926


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

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

Merges [25925] to the 3.7 branch.

Reverses a regression from [25664].

props calin.
fixes #25705.

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

  • branches/3.7/src/wp-includes/option.php

    r25664 r25926  
    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.