PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 6.4
Jetpack – WP Security, Backup, Speed, & Growth v6.4
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 14.2.2 14.3.1 All 501 releases
← All changes | class.jetpack-cli.php +8 -9 6.3.76.4 View file →
@@ -383,9 +383,9 @@
383 383 ? __( 'Active', 'jetpack' )
384 384 : __( 'Inactive', 'jetpack' ),
385 385 );
386 386 }
387 - WP_CLI\Utils\format_items( $assoc_args['format'], $modules_list, array( 'slug', 'status' ) );
387 + WP_CLI\Utils\format_items( $assoc_args['format'], $modules_list, array( 'slug', 'status' ) ); // phpcs:ignore PHPCompatibility
388 388 break;
389 389 case 'activate':
390 390 $module = Jetpack::get_module( $module_slug );
391 391 Jetpack::log( 'activate', $module_slug );
@@ -688,9 +688,9 @@
688 688 'value' => is_scalar( $item ) ? $item : json_encode( $item )
689 689 );
690 690 }
691 691
692 - WP_CLI\Utils\format_items( 'table', $collection, array( 'option', 'value' ) );
692 + WP_CLI\Utils\format_items( 'table', $collection, array( 'option', 'value' ) ); // phpcs:ignore PHPCompatibility
693 693 break;
694 694 case 'start':
695 695 // Get the original settings so that we can restore them later
696 696 $original_settings = Jetpack_Sync_Settings::get_settings();
@@ -829,9 +829,9 @@
829 829 'microtime' => $item[3],
830 830 'importing' => (string) $item[4],
831 831 );
832 832 }
833 - WP_CLI\Utils\format_items(
833 + WP_CLI\Utils\format_items( // phpcs:ignore PHPCompatibility
834 834 'table',
835 835 $collection,
836 836 array(
837 837 'action',
@@ -1147,9 +1147,9 @@
1147 1147 $output = wp_remote_retrieve_body( $response );
1148 1148 if ( isset( $named_args['pretty'] ) ) {
1149 1149 $decoded_output = json_decode( $output );
1150 1150 if ( $decoded_output ) {
1151 - $output = wp_json_encode( $decoded_output, JSON_PRETTY_PRINT );
1151 + $output = wp_json_encode( $decoded_output, JSON_PRETTY_PRINT ); // phpcs:ignore PHPCompatibility
1152 1152 }
1153 1153 }
1154 1154
1155 1155 if ( isset( $named_args['strip-success'] ) ) {
@@ -1330,9 +1330,9 @@
1330 1330 'type',
1331 1331 'connection_data',
1332 1332 );
1333 1333
1334 - WP_CLI\Utils\format_items( $named_args['format'], $connections_to_return, $expected_keys );
1334 + WP_CLI\Utils\format_items( $named_args['format'], $connections_to_return, $expected_keys ); // phpcs:ignore PHPCompatibility
1335 1335 break; // list.
1336 1336 case 'disconnect':
1337 1337 if ( ! $identifier ) {
1338 1338 WP_CLI::error( __( 'A connection ID must be passed in order to disconnect.', 'jetpack' ) );
@@ -1368,9 +1368,9 @@
1368 1368 }
1369 1369
1370 1370 if ( ! empty( $connections ) ) {
1371 1371 $count = count( $connections );
1372 - $progress = \WP_CLI\Utils\make_progress_bar(
1372 + $progress = \WP_CLI\Utils\make_progress_bar( // phpcs:ignore PHPCompatibility
1373 1373 /* translators: %s is a lowercase string for a social network. */
1374 1374 sprintf( __( 'Disconnecting all connections to %s.', 'jetpack' ), $service ),
1375 1375 $count
1376 1376 );
@@ -1446,12 +1446,11 @@
1446 1446 . $cli->color_close;
1447 1447 }
1448 1448
1449 1449 if ( ! $flagged ) {
1450 - $prompt_message = __( 'Are you sure? This cannot be undone. Type "yes" to continue:', '"yes" is a command. Do not translate that.', 'jetpack' );
1450 + $prompt_message = _x( 'Are you sure? This cannot be undone. Type "yes" to continue:', '"yes" is a command - do not translate.', 'jetpack' );
1451 1451 } else {
1452 - /* translators: Don't translate the word yes here. */
1453 - $prompt_message = __( 'Are you sure? Modifying this option may disrupt your Jetpack connection. Type "yes" to continue.', 'jetpack' );
1452 + $prompt_message = _x( 'Are you sure? Modifying this option may disrupt your Jetpack connection. Type "yes" to continue.', '"yes" is a command - do not translate.', 'jetpack' );
1454 1453 }
1455 1454
1456 1455 WP_CLI::line( $prompt_message );
1457 1456 $handle = fopen( "php://stdin", "r" );