Skip to content

Commit 3c68207

Browse files
SergeyBiryukovaslamdoctor
authored andcommitted
Coding Standards: Use strict comparison in is_user_spammy().
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
1 parent 5502fb8 commit 3c68207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/ms-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,7 @@ function is_user_spammy( $user = null ) {
23042304
}
23052305
}
23062306

2307-
return $user && isset( $user->spam ) && 1 == $user->spam;
2307+
return $user && isset( $user->spam ) && '1' === $user->spam;
23082308
}
23092309

23102310
/**

0 commit comments

Comments
 (0)