2019-11-15 23:26:29 +01:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Loading the various functions used for Jetpack Debugging.
|
|
|
|
|
*
|
2021-04-27 08:32:47 +02:00
|
|
|
* @package automattic/jetpack
|
2019-11-15 23:26:29 +01:00
|
|
|
*/
|
|
|
|
|
|
2025-12-12 13:13:07 +01:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
|
exit( 0 );
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-15 23:26:29 +01:00
|
|
|
/* Jetpack Connection Testing Framework */
|
2022-04-02 10:26:41 +02:00
|
|
|
require_once __DIR__ . '/debugger/class-jetpack-cxn-test-base.php';
|
2019-11-15 23:26:29 +01:00
|
|
|
/* Jetpack Connection Tests */
|
2022-04-02 10:26:41 +02:00
|
|
|
require_once __DIR__ . '/debugger/class-jetpack-cxn-tests.php';
|
2019-11-15 23:26:29 +01:00
|
|
|
/* Jetpack Debug Data */
|
2022-04-02 10:26:41 +02:00
|
|
|
require_once __DIR__ . '/debugger/class-jetpack-debug-data.php';
|
2019-11-15 23:26:29 +01:00
|
|
|
/* The "In-Plugin Debugger" admin page. */
|
2022-04-02 10:26:41 +02:00
|
|
|
require_once __DIR__ . '/debugger/class-jetpack-debugger.php';
|
2020-01-26 12:53:20 +01:00
|
|
|
/* General Debugging Functions */
|
2022-04-02 10:26:41 +02:00
|
|
|
require_once __DIR__ . '/debugger/debug-functions.php';
|
2019-11-15 23:26:29 +01:00
|
|
|
|
2020-01-26 12:53:20 +01:00
|
|
|
add_filter( 'debug_information', array( 'Jetpack_Debug_Data', 'core_debug_data' ) );
|
|
|
|
|
add_filter( 'site_status_tests', 'jetpack_debugger_site_status_tests' );
|
|
|
|
|
add_action( 'wp_ajax_health-check-jetpack-local_testing_suite', 'jetpack_debugger_ajax_local_testing_suite' );
|