Skip to content

Commit 62ed6c3

Browse files
Fix notification logic
1 parent 887974e commit 62ed6c3

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
@@ -2451,7 +2451,7 @@ function wp_new_comment_notify_postauthor( $comment_id ) {
24512451
// Send notifications for approved comments and all notes.
24522452
if (
24532453
! isset( $comment->comment_approved ) ||
2454-
( '1' !== $comment->comment_approved && $isNote ) ) {
2454+
( '1' !== $comment->comment_approved && ! $isNote ) ) {
24552455
return false;
24562456
}
24572457

0 commit comments

Comments
 (0)