mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Fixed bug. We now notify on comment (if options say so)
git-svn-id: https://develop.svn.wordpress.org/trunk@593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+3
-2
@@ -81,7 +81,8 @@ if (!empty($lasttime)) {
|
|||||||
if ($ok) { // if there was no comment from this IP in the last 10 seconds
|
if ($ok) { // if there was no comment from this IP in the last 10 seconds
|
||||||
$comment_moderation = get_settings('comment_moderation');
|
$comment_moderation = get_settings('comment_moderation');
|
||||||
$moderation_notify = get_settings('moderation_notify');
|
$moderation_notify = get_settings('moderation_notify');
|
||||||
|
$comments_notify = get_settings('comments_notify');
|
||||||
|
|
||||||
// o42: this place could be the hook for further comment spam checking
|
// o42: this place could be the hook for further comment spam checking
|
||||||
// $approved should be set according the final approval status
|
// $approved should be set according the final approval status
|
||||||
// of the new comment
|
// 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);
|
wp_notify_moderator($comment_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($comment_notify) && ($approved)) {
|
if (($comments_notify) && ($approved)) {
|
||||||
wp_notify_postauthor($comment_ID, 'comment');
|
wp_notify_postauthor($comment_ID, 'comment');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user