Make WordPress Core


Ignore:
Timestamp:
09/16/2015 10:25:07 PM (9 years ago)
Author:
boonebgorges
Message:

Improve consistency of comment notification callback signatures.

Both wp_new_comment_notify_moderator() and wp_new_comment_notify_postauthor()
now accept a single argument: $comment_ID.

Props SergeyBiryukov.
Fixes #33587.

File:
1 edited

Legend:

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

    r34251 r34252  
    337337
    338338// Email notifications.
    339 add_action( 'comment_post', 'wp_new_comment_notify_moderator', 10, 2 );
     339add_action( 'comment_post', 'wp_new_comment_notify_moderator' );
    340340add_action( 'comment_post', 'wp_new_comment_notify_postauthor' );
    341341add_action( 'after_password_reset', 'wp_password_change_notification' );
Note: See TracChangeset for help on using the changeset viewer.