Skip to content

Commit 60a0681

Browse files
Update callback
1 parent 88731bf commit 60a0681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/default-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
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( 'rest_insert_comment', array( 'WP_REST_Comments_Controller', 'wp_new_comment_via_rest_notify_postauthor' ) );
525+
add_action( 'rest_insert_comment', 'wp_new_comment_via_rest_notify_postauthor' );
526526
add_action( 'after_password_reset', 'wp_password_change_notification' );
527527
add_action( 'register_new_user', 'wp_send_new_user_notifications' );
528528
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );

0 commit comments

Comments
 (0)