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
This commit is contained in:
Sergey Biryukov 2025-02-21 00:35:22 +00:00
parent bbe792936c
commit d8b45098da
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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.