Skip to content

Commit 9770026

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59841 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 04d7384 commit 9770026

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
@@ -2421,7 +2421,7 @@ function wp_new_comment_notify_postauthor( $comment_id ) {
24212421
}
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
}
24272427

0 commit comments

Comments
 (0)