From 39f8ea371e0e14b1f4862cb3605c7ec0d04fb161 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 15 Feb 2025 02:31:15 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@59826 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index e9442b90a9..616bb693ea 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -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';