From cdd8b2cbfa23c612a8862c354f1bd3da3d48510d Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 10 Oct 2020 20:24:03 +0000 Subject: [PATCH] Site Health: Remove an unused function that was erroneously added when the site health feature was introduced. This function was and is never used as the `is_in_debug_mode` check is a direct one. Fixes #50282 Built from https://develop.svn.wordpress.org/trunk@49122 git-svn-id: http://core.svn.wordpress.org/trunk@48884 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ajax-actions.php | 20 -------------------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index cd43df1436..357fdc8d52 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -5158,26 +5158,6 @@ function wp_ajax_health_check_dotorg_communication() { wp_send_json_success( $site_health->get_test_dotorg_communication() ); } -/** - * Ajax handler for site health checks on debug mode. - * - * @since 5.2.0 - */ -function wp_ajax_health_check_is_in_debug_mode() { - wp_verify_nonce( 'health-check-site-status' ); - - if ( ! current_user_can( 'view_site_health_checks' ) ) { - wp_send_json_error(); - } - - if ( ! class_exists( 'WP_Site_Health' ) ) { - require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; - } - - $site_health = WP_Site_Health::get_instance(); - wp_send_json_success( $site_health->get_test_is_in_debug_mode() ); -} - /** * Ajax handler for site health checks on background updates. * diff --git a/wp-includes/version.php b/wp-includes/version.php index da4722b422..1bc667e8db 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49121'; +$wp_version = '5.6-alpha-49122'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.