Make WordPress Core

Changeset 59852


Ignore:
Timestamp:
02/21/2025 12:33:04 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_delete_comment().

Follow-up to [3271], [47219].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r59841 r59852  
    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    }
Note: See TracChangeset for help on using the changeset viewer.