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


git-svn-id: https://develop.svn.wordpress.org/trunk@49122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2020-10-10 20:22:41 +00:00
parent dba526205d
commit 781d8a54ed

View File

@ -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.
*