diff --git a/src/wp-admin/site-health-info.php b/src/wp-admin/site-health-info.php index fde931ab8a..4f5f2c8045 100644 --- a/src/wp-admin/site-health-info.php +++ b/src/wp-admin/site-health-info.php @@ -9,6 +9,8 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +$title = __( 'Site Health Info' ); + if ( ! current_user_can( 'install_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to access the debug data.' ), '', 403 ); } diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php index 62279e7daa..f3efc23d49 100644 --- a/src/wp-admin/site-health.php +++ b/src/wp-admin/site-health.php @@ -14,6 +14,8 @@ if ( isset( $_GET['tab'] ) && 'debug' === $_GET['tab'] ) { /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +$title = __( 'Site Health Status' ); + if ( ! current_user_can( 'install_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to access site health information.' ), '', 403 ); }