mirror of
https://ghproxy.net/https://github.com/growella/update-check.git
synced 2025-10-04 02:50:39 +08:00
Arguments work a lot better when you actually involve them in the command
This commit is contained in:
parent
f1f65710e1
commit
10ce31e164
1 changed files with 1 additions and 1 deletions
|
@ -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' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue