Changeset 50764 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 04/17/2021 01:12:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r50710 r50764 51 51 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 52 52 add_action( 'wp_site_health_scheduled_check', array( $this, 'wp_cron_scheduled_check' ) ); 53 54 add_action( 'site_health_tab_content', array( $this, 'show_site_health_tab' ) ); 55 } 56 57 /** 58 * Output the content of a tab in the Site Health screen. 59 * 60 * @since 5.8.0 61 * 62 * @param string $tab Slug of the current tab being displayed. 63 */ 64 public function show_site_health_tab( $tab ) { 65 if ( 'debug' === $tab ) { 66 require_once ABSPATH . '/wp-admin/site-health-info.php'; 67 } 53 68 } 54 69 … … 104 119 } 105 120 106 if ( 'site-health' === $screen->id && ! isset( $_GET['tab']) ) {121 if ( 'site-health' === $screen->id && ( ! isset( $_GET['tab'] ) || empty( $_GET['tab'] ) ) ) { 107 122 $tests = WP_Site_Health::get_tests(); 108 123
Note: See TracChangeset
for help on using the changeset viewer.