Make WordPress Core


Ignore:
Timestamp:
11/10/2025 10:49:33 PM (11 months ago)
Author:
adamsilverstein
Message:

Notes: refine post author notifications.

Code maintenance follow up to r61179. Move wp_new_comment_via_rest_notify_postauthor callback from REST API Comments controller to comment.php. Add default to wp_notes_notify for multisite compatibility.

Props adamsilverstein, justlevine, mukesh27, mamaduka, peterwilsoncc, desros.
See #64204.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r61179 r61199  
    523523add_action( 'comment_post', 'wp_new_comment_notify_moderator' );
    524524add_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' ) );
     525add_action( 'rest_insert_comment', 'wp_new_comment_via_rest_notify_postauthor' );
    526526add_action( 'after_password_reset', 'wp_password_change_notification' );
    527527add_action( 'register_new_user', 'wp_send_new_user_notifications' );
Note: See TracChangeset for help on using the changeset viewer.