Make WordPress Core

Changeset 13508


Ignore:
Timestamp:
02/28/2010 07:32:17 PM (15 years ago)
Author:
nacin
Message:

Don't pass serialized values to hooks in options API. see #10788 see #12416

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r13439 r13508  
    513513    $newvalue = maybe_serialize( $newvalue );
    514514
    515     do_action( 'update_option', $option, $oldvalue, $newvalue ); // $newvalue may be serialized.
     515    do_action( 'update_option', $option, $oldvalue, $_newvalue );
    516516    if ( ! defined( 'WP_INSTALLING' ) ) {
    517517        $alloptions = wp_load_alloptions();
     
    580580    $value = maybe_serialize( $value );
    581581    $autoload = ( 'no' === $autoload ) ? 'no' : 'yes';
    582     do_action( 'add_option', $option, $value );
     582    do_action( 'add_option', $option, $_value );
    583583    if ( ! defined( 'WP_INSTALLING' ) ) {
    584584        if ( 'yes' == $autoload ) {
Note: See TracChangeset for help on using the changeset viewer.