summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/_inc/lib/debugger/0-load.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/_inc/lib/debugger/0-load.php')
-rw-r--r--plugins/jetpack/_inc/lib/debugger/0-load.php13
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' );