Make WordPress Core

Changeset 27406


Ignore:
Timestamp:
03/05/2014 06:26:30 AM (11 years ago)
Author:
nacin
Message:

Multisite load: Properly call wp_cache_set().

props gradyetc.
see #27003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-settings.php

    r27359 r27406  
    7676            if ( 1 === $wpdb->num_rows ) {
    7777                $current_site = wp_get_network( $one_network );
    78                 wp_cache_set( 'current_network', 'site-options' );
     78                wp_cache_set( 'current_network', $current_site, 'site-options' );
    7979            } elseif ( 0 === $wpdb->num_rows ) {
    8080                ms_not_installed();
Note: See TracChangeset for help on using the changeset viewer.