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
This commit is contained in:
Sergey Biryukov 2020-02-17 09:59:04 +00:00
parent 61986acde9
commit 9de7b1c35e
2 changed files with 2 additions and 2 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';
}

View File

@ -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.