Make WordPress Core

Changeset 27665


Ignore:
Timestamp:
03/24/2014 01:02:06 AM (11 years ago)
Author:
nacin
Message:

Use wp_cache_add() instead of wp_cache_set() when we don't want an unconditional set.

props jeremyfelt.
see #27003.

File:
1 edited

Legend:

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

    r27664 r27665  
    7676            if ( 1 === $wpdb->num_rows ) {
    7777                $current_site = wp_get_network( $one_network );
    78                 wp_cache_set( 'current_network', $current_site, 'site-options' );
     78                wp_cache_add( '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.