File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments