mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Multisite load: Properly call wp_cache_set().
props gradyetc. see #27003. git-svn-id: https://develop.svn.wordpress.org/trunk@27406 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user