From 04d7384086c1106a4e68f95addd091b582f1a133 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 19 Feb 2025 19:27:27 +0000 Subject: [PATCH] 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 --- src/wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index e7b96c33b5..010c8f2035 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -2373,7 +2373,7 @@ function wp_new_comment_notify_moderator( $comment_id ) { $comment = get_comment( $comment_id ); // Only send notifications for pending comments. - $maybe_notify = ( '0' == $comment->comment_approved ); + $maybe_notify = ( '0' === $comment->comment_approved ); /** This filter is documented in wp-includes/pluggable.php */ $maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );