admin-pages
1 week ago
core-api
2 days ago
debugger
1 month ago
markdown
7 months ago
class-jetpack-ai-helper.php
4 months ago
class-jetpack-application-password-extras.php
3 months ago
class-jetpack-blog-stats-helper.php
7 months ago
class-jetpack-currencies.php
1 year ago
class-jetpack-instagram-gallery-helper.php
1 month ago
class-jetpack-mapbox-helper.php
3 years ago
class-jetpack-newsletter-category-helper.php
7 months ago
class-jetpack-podcast-feed-locator.php
1 month ago
class-jetpack-podcast-helper.php
5 months ago
class-jetpack-recommendations.php
1 month ago
class-jetpack-spinner.php
2 months ago
class-jetpack-top-posts-helper.php
1 week ago
class.color.php
1 year ago
class.core-rest-api-endpoints.php
1 week ago
class.jetpack-automatic-install-skin.php
2 years ago
class.jetpack-iframe-embed.php
3 years ago
class.jetpack-password-checker.php
7 months ago
class.jetpack-search-performance-logger.php
4 years ago
class.media-extractor.php
1 month ago
class.media-summary.php
1 week ago
class.media.php
7 months ago
components.php
7 months ago
debugger.php
1 month ago
icalendar-reader.php
1 month ago
markdown.php
7 months ago
plans.php
4 years ago
plugins.php
4 years ago
tonesque.php
7 months ago
widgets.php
3 months ago
debugger.php
48 lines
| 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). |
| 48 |