diff --git a/wp-includes/functions.php b/wp-includes/functions.php index e7babc8bb2..aea813b7d0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3349,11 +3349,11 @@ function is_main_site( $site_id = null ) { function is_main_network( $network_id = null ) { global $current_site, $wpdb; - $current_network_id = (int) $current_site->id; - if ( ! is_multisite() ) return true; + $current_network_id = (int) $current_site->id; + if ( ! $network_id ) $network_id = $current_network_id; $network_id = (int) $network_id;