diff options
Diffstat (limited to 'plugins/jetpack/_inc/lib/debugger/0-load.php')
-rw-r--r-- | plugins/jetpack/_inc/lib/debugger/0-load.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/jetpack/_inc/lib/debugger/0-load.php b/plugins/jetpack/_inc/lib/debugger/0-load.php index a3eaf4e6..ad069244 100644 --- a/plugins/jetpack/_inc/lib/debugger/0-load.php +++ b/plugins/jetpack/_inc/lib/debugger/0-load.php @@ -5,8 +5,6 @@ * @package Jetpack. */ -global $wp_version; - /* Jetpack Connection Testing Framework */ require_once 'class-jetpack-cxn-test-base.php'; /* Jetpack Connection Tests */ @@ -15,10 +13,9 @@ require_once 'class-jetpack-cxn-tests.php'; require_once 'class-jetpack-debug-data.php'; /* The "In-Plugin Debugger" admin page. */ require_once 'class-jetpack-debugger.php'; +/* General Debugging Functions */ +require_once 'debug-functions.php'; -if ( version_compare( $wp_version, '5.2-alpha', 'ge' ) ) { - require_once 'debug-functions-for-php53.php'; - 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' ); -} +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' ); |