diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/site-health-info.php --- a/wp/wp-admin/site-health-info.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/site-health-info.php Wed Sep 21 18:19:35 2022 +0200 @@ -6,18 +6,10 @@ * @subpackage Administration */ -/** WordPress Administration Bootstrap */ -require_once __DIR__ . '/admin.php'; - -$title = __( 'Site Health Info' ); - -if ( ! current_user_can( 'view_site_health_checks' ) ) { - wp_die( __( 'Sorry, you are not allowed to access the debug data.' ), '', 403 ); +if ( ! defined( 'ABSPATH' ) ) { + die(); } -wp_enqueue_style( 'site-health' ); -wp_enqueue_script( 'site-health' ); - if ( ! class_exists( 'WP_Debug_Data' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php'; } @@ -26,46 +18,7 @@ } $health_check_site_status = WP_Site_Health::get_instance(); - -require_once ABSPATH . 'wp-admin/admin-header.php'; ?> -