Make WordPress Core

Changeset 59898


Ignore:
Timestamp:
03/02/2025 07:46:43 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_insert_comment().

Follow-up to [3104], [3193], [3887].

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

File:
1 edited

Legend:

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

    r59887 r59898  
    20722072    $id = (int) $wpdb->insert_id;
    20732073
    2074     if ( 1 == $comment_approved ) {
     2074    if ( 1 === $comment_approved ) {
    20752075        wp_update_comment_count( $comment_post_id );
    20762076
Note: See TracChangeset for help on using the changeset viewer.