summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
-rw-r--r--wp-inst/wp-includes/functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php
index 8d486ff..d730d6a 100644
--- a/wp-inst/wp-includes/functions.php
+++ b/wp-inst/wp-includes/functions.php
@@ -370,7 +370,12 @@ function update_user_option( $user_id, $option_name, $newvalue, $global = false
// thx Alex Stapleton, http://alex.vort-x.net/blog/
function add_option($name, $value = '', $description = '', $autoload = 'yes') {
- global $wpdb;
+ global $wpdb, $cache_settings;
+
+ // Make sure the option doesn't already exist
+ if ( isset($cache_settings->$name) )
+ return;
+
$original = $value;
if ( is_array($value) || is_object($value) )
$value = serialize($value);