WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/17/2020 09:58:00 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Site Health: Prevent the Site Health Status dashboard widget from loading on network admin screen for now.

Props Clorith, pbiron.
See #47606, #47085.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r47256 r47300  
    4444
    4545    // Site Health.
    46     if ( current_user_can( 'view_site_health_checks' ) ) {
     46    if ( current_user_can( 'view_site_health_checks' ) && ! is_network_admin() ) {
    4747        if ( ! class_exists( 'WP_Site_Health' ) ) {
    4848            require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
Note: See TracChangeset for help on using the changeset viewer.