Make WordPress Core

Changeset 59903


Ignore:
Timestamp:
03/03/2025 09:03:26 AM (2 months ago)
Author:
swissspidy
Message:

Coding Standards: Revert strict comparison added in [59898].

$comment_approved can be both a string or an integer, so this change had unintended consequences such as breaking WP-CLI tests.

See #62279.

File:
1 edited

Legend:

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

    r59898 r59903  
    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.