Skip to content

Commit

Permalink
fix constant in comparison (#5070)
Browse files Browse the repository at this point in the history
  • Loading branch information
trepmal authored Dec 3, 2023
1 parent e51fe4e commit b94d505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vip-support/class-vip-support-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ public static function remove( $user_id, $by = 'email' ) {
// Never remove the machine user.
if (
( defined( 'WPCOM_VIP_MACHINE_USER_LOGIN' ) && \WPCOM_VIP_MACHINE_USER_LOGIN === $user->user_login ) ||
( defined( 'WPCOM_VIP_MACHINE_USER_EMAIL' ) && \WPCOM_VIP_MACHINE_USER_LOGIN === $user->user_email )
( defined( 'WPCOM_VIP_MACHINE_USER_EMAIL' ) && \WPCOM_VIP_MACHINE_USER_EMAIL === $user->user_email )
) {
return new WP_Error( 'not-removing-machine-user', 'WPCOM VIP machine user cannot be removed!' );
}
Expand Down

0 comments on commit b94d505

Please sign in to comment.