From 031370065763ebd5f78f88c559de3c63dcbf9257 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Mon, 8 Dec 2003 23:58:00 +0000 Subject: [PATCH] Fixed bug. We now notify on comment (if options say so) git-svn-id: http://svn.automattic.com/wordpress/trunk@593 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2comments.post.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/b2comments.post.php b/b2comments.post.php index bc38ebb4ee..969c7abcdf 100644 --- a/b2comments.post.php +++ b/b2comments.post.php @@ -81,7 +81,8 @@ if (!empty($lasttime)) { if ($ok) { // if there was no comment from this IP in the last 10 seconds $comment_moderation = get_settings('comment_moderation'); $moderation_notify = get_settings('moderation_notify'); - + $comments_notify = get_settings('comments_notify'); + // o42: this place could be the hook for further comment spam checking // $approved should be set according the final approval status // of the new comment @@ -104,7 +105,7 @@ if ($ok) { // if there was no comment from this IP in the last 10 seconds wp_notify_moderator($comment_ID); } - if (($comment_notify) && ($approved)) { + if (($comments_notify) && ($approved)) { wp_notify_postauthor($comment_ID, 'comment'); }