Coding Standards: Use strict comparison in wp_get_comment_status().

Follow-up to [546], [2258], [5666], [47219], [47808].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59826


git-svn-id: http://core.svn.wordpress.org/trunk@59168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2025-02-15 02:33:23 +00:00
parent 2a72568db4
commit 6c1001fb95
2 changed files with 4 additions and 4 deletions

View File

@ -1762,11 +1762,11 @@ function wp_get_comment_status( $comment_id ) {
$approved = $comment->comment_approved;
if ( null == $approved ) {
if ( null === $approved ) {
return false;
} elseif ( '1' == $approved ) {
} elseif ( '1' === $approved ) {
return 'approved';
} elseif ( '0' == $approved ) {
} elseif ( '0' === $approved ) {
return 'unapproved';
} elseif ( 'spam' === $approved ) {
return 'spam';

View File

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