@@ 44-46 (lines=3) @@ | ||
41 | /* translators: %s is the site URL */ |
|
42 | WP_CLI::line( sprintf( __( 'Checking status for %s', 'jetpack' ), esc_url( get_home_url() ) ) ); |
|
43 | ||
44 | if ( isset( $args[0] ) && 'full' !== $args[0] ) { |
|
45 | /* translators: %s is a command like "prompt" */ |
|
46 | WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) ); |
|
47 | } |
|
48 | ||
49 | $master_user_email = Jetpack::get_master_user_email(); |
|
@@ 721-723 (lines=3) @@ | ||
718 | ||
719 | // Bail if the option isn't found |
|
720 | $option = isset( $args[1] ) ? Jetpack_Options::get_option( $args[1] ) : false; |
|
721 | if ( isset( $args[1] ) && ! $option && 'update' !== $args[0] ) { |
|
722 | WP_CLI::error( __( 'Option not found or is empty. Use "list" to list option names', 'jetpack' ) ); |
|
723 | } |
|
724 | ||
725 | // Let's print_r the option if it's an array |
|
726 | // Used in the 'get' and 'list' actions |
|
@@ 1819-1824 (lines=6) @@ | ||
1816 | * @param array $assoc_args Associative parameters defined in the scaffold() method. |
|
1817 | */ |
|
1818 | public function block( $args, $assoc_args ) { |
|
1819 | if ( isset( $args[1] ) ) { |
|
1820 | $title = ucwords( $args[1] ); |
|
1821 | } else { |
|
1822 | WP_CLI::error( esc_html__( 'The title parameter is required.', 'jetpack' ) . ' 👻' ); |
|
1823 | exit( 1 ); |
|
1824 | } |
|
1825 | ||
1826 | $slug = isset( $assoc_args['slug'] ) |
|
1827 | ? $assoc_args['slug'] |