Make WordPress Core

Changeset 15634


Ignore:
Timestamp:
09/19/2010 11:08:20 AM (14 years ago)
Author:
scribu
Message:

Clarify code in wp_load_alloptions(). Props joelhardi. Fixes #14896

File:
1 edited

Legend:

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

    r15607 r15634  
    412412        $wpdb->suppress_errors($suppress);
    413413        $alloptions = array();
    414         foreach ( (array) $alloptions_db as $o )
     414        foreach ( (array) $alloptions_db as $o ) {
    415415            $alloptions[$o->option_name] = $o->option_value;
    416             if ( !defined( 'WP_INSTALLING' ) || !is_multisite() )
    417                 wp_cache_add( 'alloptions', $alloptions, 'options' );
     416        }
     417        if ( !defined( 'WP_INSTALLING' ) || !is_multisite() )
     418            wp_cache_add( 'alloptions', $alloptions, 'options' );
    418419    }
    419420
Note: See TracChangeset for help on using the changeset viewer.