Skip to content

Commit 04d7384

Browse files
Coding Standards: Use strict comparison in wp_new_comment_notify_moderator().
Follow-up to [2894], [34106], [34250], [34252], [35339]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59840 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3da7534 commit 04d7384

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
@@ -2373,7 +2373,7 @@ function wp_new_comment_notify_moderator( $comment_id ) {
23732373
$comment = get_comment( $comment_id );
23742374

23752375
// Only send notifications for pending comments.
2376-
$maybe_notify = ( '0' == $comment->comment_approved );
2376+
$maybe_notify = ( '0' === $comment->comment_approved );
23772377

23782378
/** This filter is documented in wp-includes/pluggable.php */
23792379
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );

0 commit comments

Comments
 (0)