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.
Built from https://develop.svn.wordpress.org/trunk@59563


git-svn-id: http://core.svn.wordpress.org/trunk@58949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-12-27 23:02:24 +00:00
parent dbbdd23e30
commit 233cf19ea7
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }
/** /**

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.8-alpha-59562'; $wp_version = '6.8-alpha-59563';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.