From 002bfea745824beae42179a29937a90a924c6c4a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Feb 2020 09:58:00 +0000 Subject: [PATCH] Site Health: Prevent the Site Health Status dashboard widget from loading on network admin screen for now. Props Clorith, pbiron. See #47606, #47085. git-svn-id: https://develop.svn.wordpress.org/trunk@47300 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 897f64dd75..7f85382e35 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -43,7 +43,7 @@ function wp_dashboard_setup() { } // Site Health. - if ( current_user_can( 'view_site_health_checks' ) ) { + if ( current_user_can( 'view_site_health_checks' ) && ! is_network_admin() ) { if ( ! class_exists( 'WP_Site_Health' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; }