Make WordPress Core

Changeset 14502


Ignore:
Timestamp:
05/07/2010 06:32:20 PM (14 years ago)
Author:
westi
Message:

Don't cache option values while installing. See #12140.

File:
1 edited

Legend:

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

    r14499 r14502  
    339339            if ( is_object( $row ) ) {
    340340                $value = $row->option_value;
    341                 wp_cache_add( $option, $value, 'options' );
     341                if ( ! defined( 'WP_INSTALLING' ) )
     342                    wp_cache_add( $option, $value, 'options' );
    342343            } else { // option does not exist, so we must cache its non-existence
    343344                $notoptions[$option] = true;
Note: See TracChangeset for help on using the changeset viewer.