Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 21
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Loading the various functions used for Jetpack Debugging.
4 *
5 * @package automattic/jetpack
6 */
7
8if ( ! defined( 'ABSPATH' ) ) {
9    exit( 0 );
10}
11
12/* Jetpack Connection Testing Framework */
13require_once __DIR__ . '/debugger/class-jetpack-cxn-test-base.php';
14/* Jetpack Connection Tests */
15require_once __DIR__ . '/debugger/class-jetpack-cxn-tests.php';
16/* Jetpack Debug Data */
17require_once __DIR__ . '/debugger/class-jetpack-debug-data.php';
18/* The "In-Plugin Debugger" admin page. */
19require_once __DIR__ . '/debugger/class-jetpack-debugger.php';
20
21add_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 */
26add_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 */
39add_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).