Make WordPress Core

Changeset 59841


Ignore:
Timestamp:
02/20/2025 03:18:01 AM (20 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_new_comment_notify_postauthor().

Follow-up to [2894], [34106], [34250], [34545], [36119].

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

File:
1 edited

Legend:

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

    r59840 r59841  
    24222422
    24232423        // Only send notifications for approved comments.
    2424         if ( ! isset( $comment->comment_approved ) || '1' != $comment->comment_approved ) {
     2424        if ( ! isset( $comment->comment_approved ) || '1' !== $comment->comment_approved ) {
    24252425                return false;
    24262426        }
Note: See TracChangeset for help on using the changeset viewer.