Comment notification fixes

git-svn-id: https://develop.svn.wordpress.org/trunk@1970 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-12-17 10:25:00 +00:00
parent 413186855c
commit 455abe8ff1
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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;
}