Changeset 34252
- Timestamp:
- 09/16/2015 10:25:07 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-functions.php
r34250 r34252 1647 1647 * @since 4.4.0 1648 1648 * 1649 * @param int $comment_ID ID of the comment. 1650 * @param int $comment_approved Whether the comment is approved. 1649 * @param int $comment_ID ID of the comment. 1651 1650 * @return bool True on success, false on failure. 1652 1651 */ 1653 function wp_new_comment_notify_moderator( $comment_ID, $comment_approved ) { 1652 function wp_new_comment_notify_moderator( $comment_ID ) { 1653 $comment = get_comment( $comment_ID ); 1654 1654 1655 // Only send notifications for pending comments. 1655 if ( '0' != $comment _approved ) {1656 if ( '0' != $comment->comment_approved ) { 1656 1657 return false; 1657 1658 } -
trunk/src/wp-includes/default-filters.php
r34251 r34252 337 337 338 338 // Email notifications. 339 add_action( 'comment_post', 'wp_new_comment_notify_moderator' , 10, 2);339 add_action( 'comment_post', 'wp_new_comment_notify_moderator' ); 340 340 add_action( 'comment_post', 'wp_new_comment_notify_postauthor' ); 341 341 add_action( 'after_password_reset', 'wp_password_change_notification' );
Note: See TracChangeset
for help on using the changeset viewer.