|
@@ 263-266 (lines=4) @@
|
| 260 |
|
*/ |
| 261 |
|
public function reset( $args, $assoc_args ) { |
| 262 |
|
$action = isset( $args[0] ) ? $args[0] : 'prompt'; |
| 263 |
|
if ( ! in_array( $action, array( 'options', 'modules', 'sync-checksum' ), true ) ) { |
| 264 |
|
/* translators: %s is a command like "prompt" */ |
| 265 |
|
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $action ) ); |
| 266 |
|
} |
| 267 |
|
|
| 268 |
|
$is_dry_run = ! empty( $assoc_args['dry-run'] ); |
| 269 |
|
|
|
@@ 706-708 (lines=3) @@
|
| 703 |
|
// Is the option flagged as unsafe? |
| 704 |
|
$flagged = ! in_array( $args[1], $safe_to_modify ); |
| 705 |
|
|
| 706 |
|
if ( ! in_array( $action, array( 'list', 'get', 'delete', 'update' ) ) ) { |
| 707 |
|
/* translators: %s is a command like "prompt" */ |
| 708 |
|
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $action ) ); |
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
if ( isset( $args[0] ) ) { |