Plugin Directory

Changeset 781684


Ignore:
Timestamp:
10/03/2013 07:45:34 AM (12 years ago)
Author:
commentluv
Message:

tagging 1.5.3 and update $count to help prevent false positives

Location:
growmap-anti-spambot-plugin
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • growmap-anti-spambot-plugin/trunk/growmap-anti-spambot-plugin.php

    r769669 r781684  
    44Plugin URI: http://www.growmap.com/growmap-anti-spambot-plugin/
    55Description: Very simple plugin that adds a client side generated checkbox to the comment form requesting that the user clicks it to prove they are not a spammer. Bots wont see it so their spam comment will be discarded.
    6 Version: 1.5.2
     6Version: 1.5.3
    77Author: Andy Bailey
    88Author URI: http://ComLuv.com
     
    220220    if(isset($options['max_mod']) && $options['max_mod'] != 'disabled'){
    221221        $count = get_comments(array('status'=>'hold','author_email'=>$commentdata['comment_author_email'],'count'=>true));
    222         if($count > $options['max_mod']){
     222        if($count && $count > $options['max_mod']){
    223223            wp_die(__('You already have too many comments in moderation. Please wait until your existing comments have been approved before attempting to leave more comments','ab_gasp').$nocache_return.'<p>Error Code: mc'.$count.'mm0'.$options['max_mod']);
    224224        }
  • growmap-anti-spambot-plugin/trunk/readme.txt

    r769669 r781684  
    55Requires at least: 2.9.2
    66Tested up to: 3.6
    7 Stable tag: 1.5.2
     7Stable tag: 1.5.3
    88   
    99Defeat automated spambots (even the new 'learning' bots with dynamically named hidden fields) by adding a client side generated checkbox.
     
    8888
    8989== ChangeLog ==
     90
     91= 1.5.3 =
     92
     93* updated : $count is checked if it has a value before checking if it is greater than max_mod to hopefully elimate the problem of random users being told they have too many comments in moderation
    9094
    9195= 1.5.2 =
Note: See TracChangeset for help on using the changeset viewer.