Scott Selikoff
Member
Posted 3 years ago #
I like the idea of the Comments Notifier but many times Spam, picked up by the common Akismet plugin, is sent out over e-mail. In a related post, someone posted a solution but it does not work.
Does anyone have a permanent fix for this? If not, this plugin should be considered broken and denoted as such (or removed) on this website.
http://wordpress.org/extend/plugins/comments-notifier/
Scott Selikoff
Member
Posted 3 years ago #
One fix that 'seems' to work is to add a line after 198 in http://plugins.trac.wordpress.org/browser/comments-notifier/trunk/comments-notifier.php#L198
Find (around 195-198):
function wp_notify_allmods($comment_id) {
global $wpdb;
$comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1");
Add this after it reads the comment information
if($comment->comment_approved == "spam") {return;}