mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Comment notification fixes
git-svn-id: https://develop.svn.wordpress.org/trunk@1970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -426,10 +426,10 @@ function wp_new_comment( $commentdata ) {
|
||||
do_action('comment_post', $comment_id);
|
||||
|
||||
if ( !$approved )
|
||||
wp_notify_moderator($comment_ID);
|
||||
wp_notify_moderator($comment_id);
|
||||
|
||||
if ( get_settings('comments_notify') && $approved )
|
||||
wp_notify_postauthor($comment_ID, 'comment');
|
||||
wp_notify_postauthor($comment_id, 'comment');
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user