• Can anybody please help me how to remove Duplicate Comment filter…

    Everytime I post the same comment, this message appear
    “Duplicate comment detected; it looks as though you’ve already said that!”

    Does anyone here know how to disable it? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I commented out the following lines (494-503, at least in WP 2.9.1) in the “wp-includes\comments.php” file:

    // Simple duplicate check
    	// expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content)
    //	$dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_approved != 'trash' AND ( comment_author = '$comment_author' ";
    //	if ( $comment_author_email )
    //		$dupe .= "OR comment_author_email = '$comment_author_email' ";
    //	$dupe .= ") AND comment_content = '$comment_content' LIMIT 1";
    //	if ( $wpdb->get_var($dupe) ) {
    //		if ( defined('DOING_AJAX') )
    //			die( __('Duplicate comment detected; it looks as though you’ve already said that!') );
    //
    //		wp_die( __('Duplicate comment detected; it looks as though you’ve already said that!') );
    //	}

    Does anybody have any solution to this issue that doesn’t edit the core files?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable Duplicate Comment filter’ is closed to new replies.