Changeset 34828 for trunk/src/wp-includes/option.php
- Timestamp:
- 10/05/2015 03:05:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r34779 r34828 54 54 return false; 55 55 56 if ( ! defined( 'WP_INSTALLING') ) {56 if ( ! wp_installing() ) { 57 57 // prevent non-existent options from triggering multiple queries 58 58 $notoptions = wp_cache_get( 'notoptions', 'options' ); … … 172 172 global $wpdb; 173 173 174 if ( ! defined( 'WP_INSTALLING' ) || !is_multisite() )174 if ( ! wp_installing() || ! is_multisite() ) 175 175 $alloptions = wp_cache_get( 'alloptions', 'options' ); 176 176 else … … 186 186 $alloptions[$o->option_name] = $o->option_value; 187 187 } 188 if ( ! defined( 'WP_INSTALLING' ) || !is_multisite() )188 if ( ! wp_installing() || ! is_multisite() ) 189 189 wp_cache_add( 'alloptions', $alloptions, 'options' ); 190 190 } … … 205 205 global $wpdb; 206 206 207 if ( ! is_multisite() || wp_using_ext_object_cache() || defined( 'WP_INSTALLING') )207 if ( ! is_multisite() || wp_using_ext_object_cache() || wp_installing() ) 208 208 return; 209 209 … … 333 333 } 334 334 335 if ( ! defined( 'WP_INSTALLING') ) {335 if ( ! wp_installing() ) { 336 336 $alloptions = wp_load_alloptions(); 337 337 if ( isset( $alloptions[$option] ) ) { … … 434 434 return false; 435 435 436 if ( ! defined( 'WP_INSTALLING') ) {436 if ( ! wp_installing() ) { 437 437 if ( 'yes' == $autoload ) { 438 438 $alloptions = wp_load_alloptions(); … … 510 510 511 511 $result = $wpdb->delete( $wpdb->options, array( 'option_name' => $option ) ); 512 if ( ! defined( 'WP_INSTALLING') ) {512 if ( ! wp_installing() ) { 513 513 if ( 'yes' == $row->autoload ) { 514 514 $alloptions = wp_load_alloptions(); … … 630 630 } else { 631 631 $transient_option = '_transient_' . $transient; 632 if ( ! defined( 'WP_INSTALLING') ) {632 if ( ! wp_installing() ) { 633 633 // If option is not in alloptions, it is not autoloaded and thus has a timeout 634 634 $alloptions = wp_load_alloptions();
Note: See TracChangeset
for help on using the changeset viewer.