| 1 |
<?php |
| 2 |
/** |
| 3 |
* Loading the various functions used for Jetpack Debugging. |
| 4 |
* |
| 5 |
* @package automattic/jetpack |
| 6 |
*/ |
| 7 |
|
| 8 |
/* Jetpack Connection Testing Framework */ |
| 9 |
require_once __DIR__ . '/debugger/class-jetpack-cxn-test-base.php'; |
| 10 |
/* Jetpack Connection Tests */ |
| 11 |
require_once __DIR__ . '/debugger/class-jetpack-cxn-tests.php'; |
| 12 |
/* Jetpack Debug Data */ |
| 13 |
require_once __DIR__ . '/debugger/class-jetpack-debug-data.php'; |
| 14 |
/* The "In-Plugin Debugger" admin page. */ |
| 15 |
require_once __DIR__ . '/debugger/class-jetpack-debugger.php'; |
| 16 |
/* General Debugging Functions */ |
| 17 |
require_once __DIR__ . '/debugger/debug-functions.php'; |
| 18 |
|
| 19 |
add_filter( 'debug_information', array( 'Jetpack_Debug_Data', 'core_debug_data' ) ); |
| 20 |
add_filter( 'site_status_tests', 'jetpack_debugger_site_status_tests' ); |
| 21 |
add_action( 'wp_ajax_health-check-jetpack-local_testing_suite', 'jetpack_debugger_ajax_local_testing_suite' ); |
| 22 |
add_action( 'admin_enqueue_scripts', 'jetpack_debugger_enqueue_site_health_scripts' ); |
| 23 |
add_action( 'wp_ajax_jetpack_sync_progress_check', 'jetpack_debugger_sync_progress_ajax' ); |
| 24 |
add_action( 'wp_ajax_jetpack_debugger_full_sync_start', 'jetpack_debugger_full_sync_start' ); |
| 25 |
|