Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/User_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ public function update( $args, $assoc_args ) {
$user_ids[] = $user->ID;
}

if ( empty( $user_ids ) ) {
exit( 1 );
Comment thread
mrsdizzie marked this conversation as resolved.
Outdated
}

$skip_email = Utils\get_flag_value( $assoc_args, 'skip-email' );
if ( $skip_email ) {
add_filter( 'send_email_change_email', '__return_false' );
Expand Down