diff --git a/wp-admin/includes/class-wp-site-health-auto-updates.php b/wp-admin/includes/class-wp-site-health-auto-updates.php index f6fb7d79b9..e3c02d0620 100644 --- a/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -277,7 +277,7 @@ class WP_Site_Health_Auto_Updates { public function test_check_wp_filesystem_method() { // Make sure the `request_filesystem_credentials()` function is available during our REST API call. if ( ! function_exists( 'request_filesystem_credentials' ) ) { - require_once ABSPATH . '/wp-admin/includes/file.php'; + require_once ABSPATH . 'wp-admin/includes/file.php'; } $skin = new Automatic_Upgrader_Skin; @@ -328,7 +328,7 @@ class WP_Site_Health_Auto_Updates { // Make sure the `get_core_checksums()` function is available during our REST API call. if ( ! function_exists( 'get_core_checksums' ) ) { - require_once ABSPATH . '/wp-admin/includes/update.php'; + require_once ABSPATH . 'wp-admin/includes/update.php'; } $checksums = get_core_checksums( $wp_version, 'en_US' ); diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index abe0fc6184..4300abd8de 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -65,7 +65,7 @@ class WP_Site_Health { */ public function show_site_health_tab( $tab ) { if ( 'debug' === $tab ) { - require_once ABSPATH . '/wp-admin/site-health-info.php'; + require_once ABSPATH . 'wp-admin/site-health-info.php'; } } diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index bfd32ec899..a89e601060 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -2442,7 +2442,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false, // Make sure the `submit_button()` function is available during the REST API call // from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method(). if ( ! function_exists( 'submit_button' ) ) { - require_once ABSPATH . '/wp-admin/includes/template.php'; + require_once ABSPATH . 'wp-admin/includes/template.php'; } ?>