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