Make WordPress Core

Changeset 14101


Ignore:
Timestamp:
04/16/2010 01:15:39 PM (15 years ago)
Author:
ryan
Message:

Check if value is not set. Possible in the use_cache = false scenario.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14074 r14101  
    34223422            $value = wp_cache_get($cache_key, 'site-options');
    34233423
    3424         if ( false === $value ) {
     3424        if ( !isset($value) || (false === $value) ) {
    34253425            $value = $wpdb->get_var( $wpdb->prepare("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", $option, $wpdb->siteid ) );
    34263426
Note: See TracChangeset for help on using the changeset viewer.