From 3aca04a67bb39a10cba8b690d046aef31ab69580 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 16 Apr 2010 13:15:39 +0000 Subject: [PATCH] Check if value is not set. Possible in the use_cache = false scenario. git-svn-id: https://develop.svn.wordpress.org/trunk@14101 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 205a442f5e..ebcd064abf 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3421,7 +3421,7 @@ function get_site_option( $option, $default = false, $use_cache = true ) { if ( $use_cache ) $value = wp_cache_get($cache_key, 'site-options'); - if ( false === $value ) { + if ( !isset($value) || (false === $value) ) { $value = $wpdb->get_var( $wpdb->prepare("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) ); if ( is_null($value) )