|
@@ 257-260 (lines=4) @@
|
| 254 |
|
*/ |
| 255 |
|
public function reset( $args, $assoc_args ) { |
| 256 |
|
$action = isset( $args[0] ) ? $args[0] : 'prompt'; |
| 257 |
|
if ( ! in_array( $action, array( 'options', 'modules', 'sync-checksum' ), true ) ) { |
| 258 |
|
/* translators: %s is a command like "prompt" */ |
| 259 |
|
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $action ) ); |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
$is_dry_run = ! empty( $assoc_args['dry-run'] ); |
| 263 |
|
|
|
@@ 695-697 (lines=3) @@
|
| 692 |
|
// Is the option flagged as unsafe? |
| 693 |
|
$flagged = ! in_array( $args[1], $safe_to_modify ); |
| 694 |
|
|
| 695 |
|
if ( ! in_array( $action, array( 'list', 'get', 'delete', 'update' ) ) ) { |
| 696 |
|
/* translators: %s is a command like "prompt" */ |
| 697 |
|
WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $action ) ); |
| 698 |
|
} |
| 699 |
|
|
| 700 |
|
if ( isset( $args[0] ) ) { |