Growmap Anti Spambot Plugin - Version 1.5.3

Version Description

  • 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
Download this release

Release Info

Developer commentluv
Plugin Icon wp plugin Growmap Anti Spambot Plugin
Version 1.5.3
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.3

Files changed (2) hide show
  1. growmap-anti-spambot-plugin.php +2 -2
  2. readme.txt +5 -1
growmap-anti-spambot-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Growmap Anti Spambot Plugin
4
  Plugin URI: http://www.growmap.com/growmap-anti-spambot-plugin/
5
  Description: 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
7
  Author: Andy Bailey
8
  Author URI: http://ComLuv.com
9
  */
@@ -219,7 +219,7 @@ function gasp_check_comment($commentdata){
219
  }
220
  if(isset($options['max_mod']) && $options['max_mod'] != 'disabled'){
221
  $count = get_comments(array('status'=>'hold','author_email'=>$commentdata['comment_author_email'],'count'=>true));
222
- if($count > $options['max_mod']){
223
  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']);
224
  }
225
  }
3
  Plugin Name: Growmap Anti Spambot Plugin
4
  Plugin URI: http://www.growmap.com/growmap-anti-spambot-plugin/
5
  Description: 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.3
7
  Author: Andy Bailey
8
  Author URI: http://ComLuv.com
9
  */
219
  }
220
  if(isset($options['max_mod']) && $options['max_mod'] != 'disabled'){
221
  $count = get_comments(array('status'=>'hold','author_email'=>$commentdata['comment_author_email'],'count'=>true));
222
+ if($count && $count > $options['max_mod']){
223
  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']);
224
  }
225
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:http://comluv.com/about/donate
4
  Tags: comments, anti spam, spam, spambot, gasp
5
  Requires at least: 2.9.2
6
  Tested up to: 3.6
7
- Stable tag: 1.5.2
8
 
9
  Defeat automated spambots (even the new 'learning' bots with dynamically named hidden fields) by adding a client side generated checkbox.
10
 
@@ -88,6 +88,10 @@ also, you can try saving the settings again to reset all the variables
88
 
89
  == ChangeLog ==
90
 
 
 
 
 
91
  = 1.5.2 =
92
 
93
  * updated : set checkbox as descendant of label so users can click the label to tick the box (thanks Anthony T)
4
  Tags: comments, anti spam, spam, spambot, gasp
5
  Requires at least: 2.9.2
6
  Tested up to: 3.6
7
+ Stable tag: 1.5.3
8
 
9
  Defeat automated spambots (even the new 'learning' bots with dynamically named hidden fields) by adding a client side generated checkbox.
10
 
88
 
89
  == 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
94
+
95
  = 1.5.2 =
96
 
97
  * updated : set checkbox as descendant of label so users can click the label to tick the box (thanks Anthony T)