From d064bd4545bb79242eeb798640b59e6b70c7b42e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 25 Mar 2004 07:21:00 +0000 Subject: [PATCH] Recache options when updating. git-svn-id: https://develop.svn.wordpress.org/trunk@1009 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index dfa393edd8..0b2587dc88 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -343,9 +343,11 @@ function get_alloptions() { } function update_option($option_name, $newvalue) { - global $wpdb, $tableoptions; + global $wpdb, $tableoptions, $cache_settings; // No validation at the moment $wpdb->query("UPDATE $tableoptions SET option_value = '$newvalue' WHERE option_name = '$option_name'"); + $cache_settings = get_alloptions(); // Re cache settings + return true; } function add_option() {