Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in is_user_spammy().
Browse files Browse the repository at this point in the history
Follow-up to [https://mu.trac.wordpress.org/changeset/1640 mu:1640].

Props debarghyabanerjee, aristath, poena, afercia, SergeyBiryukov.
See #62279, #62283.

git-svn-id: https://develop.svn.wordpress.org/trunk@59563 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Dec 27, 2024
1 parent 20110f6 commit 779ed48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/ms-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ function is_user_spammy( $user = null ) {
}
}

return $user && isset( $user->spam ) && 1 == $user->spam;
return $user && isset( $user->spam ) && '1' === $user->spam;
}

/**
Expand Down

0 comments on commit 779ed48

Please sign in to comment.