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
This commit is contained in:
Sergey Biryukov 2020-02-17 09:58:00 +00:00
parent 9ac7fca92b
commit 002bfea745
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}