Forums

[Plugin: Comments Notifier] Spam comments *STILL* sent out via Comment Notifier (2 posts)

  1. 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/

  2. 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;}

Topic Closed

This topic has been closed to new replies.

About this Topic