Arguments work a lot better when you actually involve them in the command

This commit is contained in:
Steve Grunwell 2017-03-13 18:10:57 -04:00
parent f1f65710e1
commit 10ce31e164

View file

@ -126,7 +126,7 @@ class UpdateCheck extends \WP_CLI_Command {
if ( isset( $assoc_args['email'] ) ) {

// No need to send an email.
if ( ! $send_email ) {
if ( ! $send_email && ! isset( $assoc_args['report-current'] ) ) {
return WP_CLI::debug( __( 'Everything up to date, no email has been sent.', 'update-check' ) );
}