From 6c1001fb95b906aa46c11b4d392121be7c755f71 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 15 Feb 2025 02:33:23 +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. Built from https://develop.svn.wordpress.org/trunk@59826 git-svn-id: http://core.svn.wordpress.org/trunk@59168 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index e9442b90a9..616bb693ea 100644 --- a/wp-includes/comment.php +++ b/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'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 08bbbf8fb7..b528141bff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.