@@ 346-353 (lines=8) @@ | ||
343 | } |
|
344 | WP_CLI::success( __( 'Modules reset to default.', 'jetpack' ) ); |
|
345 | break; |
|
346 | case 'modules': |
|
347 | if ( ! $is_dry_run ) { |
|
348 | $default_modules = Jetpack::get_default_modules(); |
|
349 | Jetpack::update_active_modules( $default_modules ); |
|
350 | } |
|
351 | ||
352 | WP_CLI::success( __( 'Modules reset to default.', 'jetpack' ) ); |
|
353 | break; |
|
354 | case 'prompt': |
|
355 | WP_CLI::error( __( 'Please specify if you would like to reset your options, modules or sync-checksum', 'jetpack' ) ); |
|
356 | break; |
|
@@ 554-558 (lines=5) @@ | ||
551 | WP_CLI::error( sprintf( __( '%s could not be activated.', 'jetpack' ), $module['name'] ) ); |
|
552 | } |
|
553 | break; |
|
554 | case 'activate_all': |
|
555 | $modules = Jetpack::get_available_modules(); |
|
556 | Jetpack::update_active_modules( $modules ); |
|
557 | WP_CLI::success( __( 'All modules activated!', 'jetpack' ) ); |
|
558 | break; |
|
559 | case 'deactivate': |
|
560 | $module = Jetpack::get_module( $module_slug ); |
|
561 | Jetpack::log( 'deactivate', $module_slug ); |