Skip to content

Commit 7e2bc4e

Browse files
authored
Merge pull request #7515 from Automattic/update/debugger-add-raw-idc-urls
Debugger: Add some sync IDC URLs to the debugger
2 parents 6517a3b + afa99e4 commit 7e2bc4e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

class.jetpack-debugger.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ public static function jetpack_debug_display_handler() {
123123
$debug_info .= "\r\n". sprintf( esc_html__( 'Full Sync Queue size: %1$s', 'jetpack' ), $full_sync_queue->size() );
124124
$debug_info .= "\r\n". sprintf( esc_html__( 'Full Sync Queue lag: %1$s', 'jetpack' ), self::seconds_to_time( $full_sync_queue->lag() ) );
125125

126+
require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-functions.php';
127+
$idc_urls = array(
128+
'home' => Jetpack_Sync_Functions::home_url(),
129+
'siteurl' => Jetpack_Sync_Functions::site_url(),
130+
'WP_HOME' => Jetpack_Constants::is_defined( 'WP_HOME' ) ? Jetpack_Constants::get_constant( 'WP_HOME' ) : '',
131+
'WP_SITEURL' => Jetpack_Constants::is_defined( 'WP_SITEURL' ) ? Jetpack_Constants::get_constant( 'WP_SITEURL' ) : '',
132+
);
133+
$debug_info .= "\r\n". esc_html( sprintf( 'Sync IDC URLs: %s', json_encode( $idc_urls ) ) );
134+
$debug_info .= "\r\n". esc_html( sprintf( 'Sync error IDC option: %s', json_encode( Jetpack_Options::get_option( 'sync_error_idc' ) ) ) );
135+
$debug_info .= "\r\n". esc_html( sprintf( 'Sync IDC Optin: %s', (string) Jetpack::sync_idc_optin() ) );
136+
126137
$debug_info .= "\r\n";
127138

128139
foreach ( array (

0 commit comments

Comments
 (0)