Skip to content

Commit 93b9bd1

Browse files
PHP not react
1 parent 6fd6294 commit 93b9bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ function wp_new_comment_notify_postauthor( $comment_id ) {
24272427
$comment = get_comment( $comment_id );
24282428
$is_note = ( $comment && 'note' === $comment->comment_type );
24292429

2430-
$maybe_notify = $isNote ? get_option( 'notes_notify' ) : get_option( 'comments_notify' );
2430+
$maybe_notify = $is_note ? get_option( 'notes_notify' ) : get_option( 'comments_notify' );
24312431

24322432
/**
24332433
* Filters whether to send the post author new comment notification emails,
@@ -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 && ! $is_note ) ) {
24552455
return false;
24562456
}
24572457

0 commit comments

Comments
 (0)