From d8b45098daff20a2b680bdd1007bbdfe8d3f7023 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 21 Feb 2025 00:35:22 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_delete_comment()`. Follow-up to [3271], [47219]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59852 git-svn-id: http://core.svn.wordpress.org/trunk@59194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 8f42871b90..80e4c1e238 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1528,7 +1528,7 @@ function wp_delete_comment( $comment_id, $force_delete = false ) { do_action( 'deleted_comment', $comment->comment_ID, $comment ); $post_id = $comment->comment_post_ID; - if ( $post_id && 1 == $comment->comment_approved ) { + if ( $post_id && '1' === $comment->comment_approved ) { wp_update_comment_count( $post_id ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index a7e9cbdd95..7e74a37fad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59851'; +$wp_version = '6.8-alpha-59852'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.