From 5dc0a56f26fd768c978993a3dad711927acd233d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 5 Mar 2014 06:27:14 +0000 Subject: [PATCH] Multisite load: Properly call wp_cache_set(). props gradyetc. see #27003. Built from https://develop.svn.wordpress.org/trunk@27406 git-svn-id: http://core.svn.wordpress.org/trunk@27253 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-settings.php b/wp-includes/ms-settings.php index 043c038052..ac02ba57c3 100644 --- a/wp-includes/ms-settings.php +++ b/wp-includes/ms-settings.php @@ -75,7 +75,7 @@ if ( !isset( $current_site ) || !isset( $current_blog ) ) { $one_network = $wpdb->get_row( "SELECT * FROM $wpdb->site LIMIT 2" ); // [sic] if ( 1 === $wpdb->num_rows ) { $current_site = wp_get_network( $one_network ); - wp_cache_set( 'current_network', 'site-options' ); + wp_cache_set( 'current_network', $current_site, 'site-options' ); } elseif ( 0 === $wpdb->num_rows ) { ms_not_installed(); }