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