Check if value is not set. Possible in the use_cache = false scenario.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f9f8d61872
commit
48a87bdaca
|
@ -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) )
|
||||
|
|
Loading…
Reference in New Issue