From 24243ae134400190e527d7e50a5c9202e2e58d79 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 22 Jul 2013 04:24:13 +0000 Subject: [PATCH] Make update_option() consistent with add_option() for how serializable data is stored in the object cache. props rmccue. fixes #23381. git-svn-id: https://develop.svn.wordpress.org/trunk@24760 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/option.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index 3c355e6685..3df89c2c25 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -247,10 +247,10 @@ function update_option( $option, $newvalue ) { if ( ! defined( 'WP_INSTALLING' ) ) { $alloptions = wp_load_alloptions(); if ( isset( $alloptions[$option] ) ) { - $alloptions[$option] = $_newvalue; + $alloptions[$option] = $newvalue; wp_cache_set( 'alloptions', $alloptions, 'options' ); } else { - wp_cache_set( $option, $_newvalue, 'options' ); + wp_cache_set( $option, $newvalue, 'options' ); } }