@@ 42-44 (lines=3) @@ | ||
39 | WP_CLI::error( __( 'Jetpack is not currently connected to WordPress.com', 'jetpack' ) ); |
|
40 | } |
|
41 | ||
42 | if ( isset( $args[0] ) && 'full' !== $args[0] ) { |
|
43 | /* translators: %s is a command like "prompt" */ |
|
44 | WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) ); |
|
45 | } |
|
46 | ||
47 | $master_user_email = Jetpack::get_master_user_email(); |
|
@@ 593-595 (lines=3) @@ | ||
590 | ||
591 | // Bail if the option isn't found |
|
592 | $option = isset( $args[1] ) ? Jetpack_Options::get_option( $args[1] ) : false; |
|
593 | if ( isset( $args[1] ) && ! $option && 'update' !== $args[0] ) { |
|
594 | WP_CLI::error( __( 'Option not found or is empty. Use "list" to list option names', 'jetpack' ) ); |
|
595 | } |
|
596 | ||
597 | // Let's print_r the option if it's an array |
|
598 | // Used in the 'get' and 'list' actions |