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.