PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
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 14.1.1 All 503 releases
← All changes | _inc/lib/debugger/class-jetpack-debug-data.php +10 -9 12.9.516.2 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,14 +284,15 @@
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 */
293 293 $sync_module = Modules::get_module( 'full-sync' );
294 + '@phan-var \Automattic\Jetpack\Sync\Modules\Full_Sync_Immediately|\Automattic\Jetpack\Sync\Modules\Full_Sync $sync_module';
294 295 if ( $sync_module ) {
295 296 $sync_statuses = $sync_module->get_status();
296 297 $human_readable_sync_status = array();
297 298 foreach ( $sync_statuses as $sync_status => $sync_status_value ) {
@@ -300,9 +301,9 @@
300 301 ? gmdate( 'r', $sync_status_value ) : $sync_status_value;
301 302 }
302 303 $debug_info['full_sync'] = array(
303 304 'label' => 'Full Sync Status',
304 - 'value' => wp_json_encode( $human_readable_sync_status ),
305 + 'value' => wp_json_encode( $human_readable_sync_status, JSON_UNESCAPED_SLASHES ),
305 306 'private' => false,
306 307 );
307 308 }
308 309
@@ -345,14 +346,14 @@
345 346 );
346 347
347 348 $debug_info['idc_urls'] = array(
348 349 'label' => 'IDC URLs',
349 - 'value' => wp_json_encode( $idc_urls ),
350 + 'value' => wp_json_encode( $idc_urls, JSON_UNESCAPED_SLASHES ),
350 351 'private' => false,
351 352 );
352 353 $debug_info['idc_error_option'] = array(
353 354 'label' => 'IDC Error Option',
354 - '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 ),
355 356 'private' => false,
356 357 );
357 358 $debug_info['idc_optin'] = array(
358 359 'label' => 'IDC Opt-in',
@@ -360,9 +361,9 @@
360 361 'private' => false,
361 362 );
362 363
363 364 // @todo -- Add testing results?
364 - $cxn_tests = new Jetpack_Cxn_Tests();
365 + $cxn_tests = new Automattic\Jetpack\Connection\Connection_Health_Tests();
365 366 $debug_info['cxn_tests'] = array(
366 367 'label' => 'Connection Tests',
367 368 'value' => '',
368 369 'private' => false,
@@ -369,9 +370,9 @@
369 370 );
370 371 if ( $cxn_tests->pass() ) {
371 372 $debug_info['cxn_tests']['value'] = 'All Pass.';
372 373 } else {
373 - $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 );
374 375 }
375 376
376 377 return $debug_info;
377 378 }
@@ -389,9 +390,9 @@
389 390 }
390 391
391 392 $user = new WP_User( $master_user );
392 393
393 - if ( ! $user ) {
394 + if ( ! $user->exists() ) {
394 395 return __( 'Master user no longer exists. Please disconnect and reconnect Jetpack.', 'jetpack' );
395 396 }
396 397
397 398 return self::human_readable_user( $user );