Make WordPress Core


Ignore:
Timestamp:
07/22/2013 04:24:13 AM (13 years ago)
Author:
nacin
Message:

Make update_option() consistent with add_option() for how serializable data is stored in the object cache.

props rmccue.
fixes #23381.

File:
1 edited

Legend:

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

    r24433 r24760  
    248248                $alloptions = wp_load_alloptions();
    249249                if ( isset( $alloptions[$option] ) ) {
    250                         $alloptions[$option] = $_newvalue;
     250                        $alloptions[$option] = $newvalue;
    251251                        wp_cache_set( 'alloptions', $alloptions, 'options' );
    252252                } else {
    253                         wp_cache_set( $option, $_newvalue, 'options' );
     253                        wp_cache_set( $option, $newvalue, 'options' );
    254254                }
    255255        }
Note: See TracChangeset for help on using the changeset viewer.