From afa99e469b13eb7355a71c93ff73e9a65cbaf48c Mon Sep 17 00:00:00 2001 From: Eric Binnion Date: Mon, 24 Jul 2017 17:00:11 -0500 Subject: [PATCH] Debugger: Add some sync IDC URLs to the debugger --- class.jetpack-debugger.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/class.jetpack-debugger.php b/class.jetpack-debugger.php index 667a45989dcd5..c2b2ca49150d2 100644 --- a/class.jetpack-debugger.php +++ b/class.jetpack-debugger.php @@ -123,6 +123,17 @@ public static function jetpack_debug_display_handler() { $debug_info .= "\r\n". sprintf( esc_html__( 'Full Sync Queue size: %1$s', 'jetpack' ), $full_sync_queue->size() ); $debug_info .= "\r\n". sprintf( esc_html__( 'Full Sync Queue lag: %1$s', 'jetpack' ), self::seconds_to_time( $full_sync_queue->lag() ) ); + require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-functions.php'; + $idc_urls = array( + 'home' => Jetpack_Sync_Functions::home_url(), + 'siteurl' => Jetpack_Sync_Functions::site_url(), + 'WP_HOME' => Jetpack_Constants::is_defined( 'WP_HOME' ) ? Jetpack_Constants::get_constant( 'WP_HOME' ) : '', + 'WP_SITEURL' => Jetpack_Constants::is_defined( 'WP_SITEURL' ) ? Jetpack_Constants::get_constant( 'WP_SITEURL' ) : '', + ); + $debug_info .= "\r\n". esc_html( sprintf( 'Sync IDC URLs: %s', json_encode( $idc_urls ) ) ); + $debug_info .= "\r\n". esc_html( sprintf( 'Sync error IDC option: %s', json_encode( Jetpack_Options::get_option( 'sync_error_idc' ) ) ) ); + $debug_info .= "\r\n". esc_html( sprintf( 'Sync IDC Optin: %s', (string) Jetpack::sync_idc_optin() ) ); + $debug_info .= "\r\n"; foreach ( array (