@@ 38-41 (lines=4) @@ | ||
35 | ||
36 | WP_CLI::line( sprintf( __( 'Checking status for %s', 'jetpack' ), esc_url( get_home_url() ) ) ); |
|
37 | ||
38 | if ( isset( $args[0] ) && 'full' !== $args[0] ) { |
|
39 | /* translators: %s is a command like "prompt" */ |
|
40 | WP_CLI::error( sprintf( __( '%s is not a valid command.', 'jetpack' ), $args[0] ) ); |
|
41 | } |
|
42 | ||
43 | $master_user_email = Jetpack::get_master_user_email(); |
|
44 | ||
@@ 1526-1531 (lines=6) @@ | ||
1523 | * @param array $assoc_args Associative parameters defined in the scaffold() method. |
|
1524 | */ |
|
1525 | public function block( $args, $assoc_args ) { |
|
1526 | if ( isset( $args[1] ) ) { |
|
1527 | $title = $args[1]; |
|
1528 | } else { |
|
1529 | WP_CLI::error( esc_html__( 'The title parameter is required.', 'jetpack' ) . ' 👻' ); |
|
1530 | exit( 1 ); |
|
1531 | } |
|
1532 | ||
1533 | $slug = isset( $assoc_args['slug'] ) |
|
1534 | ? $assoc_args['slug'] |