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