PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
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 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | _inc/lib/debugger/class-jetpack-debug-data.php +9 -9 13.5.216.3-a.1 View file →
@@ -225,14 +225,14 @@
225 225 'private' => false,
226 226 );
227 227 $debug_info['blog_token'] = array(
228 228 'label' => 'Blog Public Key',
229 - 'value' => ( $blog_token ) ? $blog_key : 'Not set.',
229 + 'value' => $blog_key ?? 'Not set.',
230 230 'private' => false,
231 231 );
232 232 $debug_info['user_token'] = array(
233 233 'label' => 'User Public Key',
234 - 'value' => ( $user_token ) ? $user_key : 'Not set.',
234 + 'value' => $user_key ?? 'Not set.',
235 235 'private' => false,
236 236 );
237 237
238 238 /** Jetpack Environmental Information */
@@ -284,9 +284,9 @@
284 284 }
285 285
286 286 $debug_info['protect_header'] = array(
287 287 'label' => 'Trusted IP',
288 - 'value' => wp_json_encode( get_site_option( 'trusted_ip_header' ) ),
288 + 'value' => wp_json_encode( get_site_option( 'trusted_ip_header' ), JSON_UNESCAPED_SLASHES ),
289 289 'private' => false,
290 290 );
291 291
292 292 /** Sync Debug Information */
@@ -301,9 +301,9 @@
301 301 ? gmdate( 'r', $sync_status_value ) : $sync_status_value;
302 302 }
303 303 $debug_info['full_sync'] = array(
304 304 'label' => 'Full Sync Status',
305 - 'value' => wp_json_encode( $human_readable_sync_status ),
305 + 'value' => wp_json_encode( $human_readable_sync_status, JSON_UNESCAPED_SLASHES ),
306 306 'private' => false,
307 307 );
308 308 }
309 309
@@ -346,14 +346,14 @@
346 346 );
347 347
348 348 $debug_info['idc_urls'] = array(
349 349 'label' => 'IDC URLs',
350 - 'value' => wp_json_encode( $idc_urls ),
350 + 'value' => wp_json_encode( $idc_urls, JSON_UNESCAPED_SLASHES ),
351 351 'private' => false,
352 352 );
353 353 $debug_info['idc_error_option'] = array(
354 354 'label' => 'IDC Error Option',
355 - 'value' => wp_json_encode( Jetpack_Options::get_option( 'sync_error_idc' ) ),
355 + 'value' => wp_json_encode( Jetpack_Options::get_option( 'sync_error_idc' ), JSON_UNESCAPED_SLASHES ),
356 356 'private' => false,
357 357 );
358 358 $debug_info['idc_optin'] = array(
359 359 'label' => 'IDC Opt-in',
@@ -361,9 +361,9 @@
361 361 'private' => false,
362 362 );
363 363
364 364 // @todo -- Add testing results?
365 - $cxn_tests = new Jetpack_Cxn_Tests();
365 + $cxn_tests = new Automattic\Jetpack\Connection\Connection_Health_Tests();
366 366 $debug_info['cxn_tests'] = array(
367 367 'label' => 'Connection Tests',
368 368 'value' => '',
369 369 'private' => false,
@@ -370,9 +370,9 @@
370 370 );
371 371 if ( $cxn_tests->pass() ) {
372 372 $debug_info['cxn_tests']['value'] = 'All Pass.';
373 373 } else {
374 - $debug_info['cxn_tests']['value'] = wp_json_encode( $cxn_tests->list_fails() );
374 + $debug_info['cxn_tests']['value'] = wp_json_encode( $cxn_tests->list_fails(), JSON_UNESCAPED_SLASHES );
375 375 }
376 376
377 377 return $debug_info;
378 378 }
@@ -390,9 +390,9 @@
390 390 }
391 391
392 392 $user = new WP_User( $master_user );
393 393
394 - if ( ! $user ) {
394 + if ( ! $user->exists() ) {
395 395 return __( 'Master user no longer exists. Please disconnect and reconnect Jetpack.', 'jetpack' );
396 396 }
397 397
398 398 return self::human_readable_user( $user );