PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | _inc/lib/debugger.php +47 -0 16.2-beta → 16.3 View file →
@@ -1,0 +1,47 @@
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 +
21 +add_filter( 'debug_information', array( 'Jetpack_Debug_Data', 'core_debug_data' ) );
22 +
23 +/*
24 + * Use the beta support group URL for development versions of Jetpack.
25 + */
26 +add_filter(
27 + 'jetpack_connection_support_url',
28 + function ( $url ) {
29 + if ( Jetpack::is_development_version() ) {
30 + return Automattic\Jetpack\Redirect::get_url( 'jetpack-contact-support-beta-group' );
31 + }
32 + return $url;
33 + }
34 +);
35 +
36 +/*
37 + * Provide the Jetpack reconnect URL for connection health test failures.
38 + */
39 +add_filter(
40 + 'jetpack_connection_reconnect_url',
41 + function () {
42 + return admin_url( 'admin.php?page=jetpack#/reconnect' );
43 + }
44 +);
45 +
46 +// Note: Jetpack-specific test registration via jetpack_connection_tests_loaded
47 +// has moved to class.jetpack.php so it runs on all requests (not just admin).