Skip to content

Commit d9b9fa5

Browse files
Coding Standards: Use strict comparison in wp_delete_comment().
Follow-up to [3271], [47219]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59852 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fec79b7 commit d9b9fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ function wp_delete_comment( $comment_id, $force_delete = false ) {
15281528
do_action( 'deleted_comment', $comment->comment_ID, $comment );
15291529

15301530
$post_id = $comment->comment_post_ID;
1531-
if ( $post_id && 1 == $comment->comment_approved ) {
1531+
if ( $post_id && '1' === $comment->comment_approved ) {
15321532
wp_update_comment_count( $post_id );
15331533
}
15341534

0 commit comments

Comments
 (0)