Skip to content

Commit 5b3df74

Browse files
Update non-user command
1 parent 78d94a4 commit 5b3df74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/User_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ public function update( $args, $assoc_args ) {
545545
$user_ids[] = $user->ID;
546546
}
547547

548+
if ( empty( $user_ids ) ) {
549+
exit( 1 );
550+
}
551+
548552
$skip_email = Utils\get_flag_value( $assoc_args, 'skip-email' );
549553
if ( $skip_email ) {
550554
add_filter( 'send_email_change_email', '__return_false' );

0 commit comments

Comments
 (0)