Skip to content

Commit d22d496

Browse files
Fix Yoda condition check
1 parent e741cea commit d22d496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/User_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ public function reset_password( $args, $assoc_args ) {
11041104
}
11051105

11061106
$reset_user_count = count( $users );
1107-
if ( $reset_user_count === 1 ) {
1107+
if ( 1 === $reset_user_count ) {
11081108
WP_CLI::success( "Password reset for {$reset_user_count} user." );
11091109
} elseif ( $reset_user_count > 1 ) {
11101110
WP_CLI::success( "Passwords reset for {$reset_user_count} users." );

0 commit comments

Comments
 (0)