Skip to content

Commit 6faacfe

Browse files
remove notes conditional
1 parent 6799a1d commit 6faacfe

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/wp-includes/default-filters.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -522,14 +522,8 @@
522522
// Email notifications.
523523
add_action( 'comment_post', 'wp_new_comment_notify_moderator' );
524524
add_action( 'comment_post', 'wp_new_comment_notify_postauthor' );
525-
add_action(
526-
'rest_insert_comment',
527-
function ( $comment ) {
528-
if ( 'note' === $comment->comment_type ) {
529-
wp_new_comment_notify_postauthor( $comment->comment_ID );
530-
}
531-
}
532-
);
525+
add_action( 'rest_insert_comment', 'wp_new_comment_notify_moderator' );
526+
533527
add_action( 'after_password_reset', 'wp_password_change_notification' );
534528
add_action( 'register_new_user', 'wp_send_new_user_notifications' );
535529
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );

0 commit comments

Comments
 (0)