diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 7bce735499..9525cfb32c 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -338,7 +338,8 @@ function get_option( $option, $default = false ) { // Has to be get_row instead of get_var because of funkiness with 0, false, null values if ( is_object( $row ) ) { $value = $row->option_value; - wp_cache_add( $option, $value, 'options' ); + if ( ! defined( 'WP_INSTALLING' ) ) + wp_cache_add( $option, $value, 'options' ); } else { // option does not exist, so we must cache its non-existence $notoptions[$option] = true; wp_cache_set( 'notoptions', $notoptions, 'options' );