From 9de7b1c35ed543f284b9f3cfaa0ca01e73f7f990 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 17 Feb 2020 09:59:04 +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. Built from https://develop.svn.wordpress.org/trunk@47300 git-svn-id: http://core.svn.wordpress.org/trunk@47100 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 897f64dd75..7f85382e35 100644 --- a/wp-admin/includes/dashboard.php +++ b/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'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 87fc2ebf8a..4fb2e6adfb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-beta1-47299'; +$wp_version = '5.4-beta1-47300'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.