WordPress.org

Forums

Top Commentators Widget
E-mail filter problem (2 posts)

  1. ostin654
    Member
    Posted 4 years ago #

    // This prepares e-mails for filtering
    if($options['filterEmail'] != "") {
    	$filterEmail = trim($options['filterEmail']);
    	$filterEmail = explode(",", $filterEmail);
    	for($i=0; $i<count($filterUrl); $i++) {
    		$new_emails .= " AND comment_author_email NOT LIKE '%" . trim($filterEmail[$i]) . "%'";
    	}
    	$filterEmail = $new_emails;
    }

    this does not work
    for($i=0; $i<count($filterUrl); $i++) {
    must be
    for($i=0; $i<count($filterEmail); $i++) {

    http://wordpress.org/extend/plugins/top-commentators-widget/

  2. Lorna Timbah
    Member
    Plugin Author

    Posted 4 years ago #

    @ostin654: thanks for the debugging info. I'll be sure to put this up in the next update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Top Commentators Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic