summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-04-10 22:00:23 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-04-10 22:00:23 -0400
commita9f67089ebcadba2c7392e91d77c1b32a5515c1a (patch)
tree46d486f0aabbaa08f2ed083e1e65cf05dfcecdb8 /plugins/jetpack/class.jetpack-cli.php
parentUpdate wordpress-mobile-pack 3.3 (diff)
downloadblogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.gz
blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.tar.bz2
blogs-gentoo-a9f67089ebcadba2c7392e91d77c1b32a5515c1a.zip
Update jetpack 6.0
Diffstat (limited to 'plugins/jetpack/class.jetpack-cli.php')
-rw-r--r--plugins/jetpack/class.jetpack-cli.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/jetpack/class.jetpack-cli.php b/plugins/jetpack/class.jetpack-cli.php
index 7742e106..1f242377 100644
--- a/plugins/jetpack/class.jetpack-cli.php
+++ b/plugins/jetpack/class.jetpack-cli.php
@@ -362,8 +362,11 @@ class Jetpack_CLI extends WP_CLI_Command {
case 'activate':
$module = Jetpack::get_module( $module_slug );
Jetpack::log( 'activate', $module_slug );
- Jetpack::activate_module( $module_slug, false, false );
- WP_CLI::success( sprintf( __( '%s has been activated.', 'jetpack' ), $module['name'] ) );
+ if ( Jetpack::activate_module( $module_slug, false, false ) ) {
+ WP_CLI::success( sprintf( __( '%s has been activated.', 'jetpack' ), $module['name'] ) );
+ } else {
+ WP_CLI::error( sprintf( __( '%s could not be activated.', 'jetpack' ), $module['name'] ) );
+ }
break;
case 'activate_all':
$modules = Jetpack::get_available_modules();