Gravity Forms Zero Spam - Version 1.2.2

Version Description

on August 11, 2022 =

  • Improved: Prevent autocomplete on the hidden field. This may help prevent some reported false-positives.
  • Tested with WordPress 6.0.1
Download this release

Release Info

Developer gravityview
Plugin Icon 128x128 Gravity Forms Zero Spam
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (2) hide show
  1. gravityforms-zero-spam.php +6 -3
  2. readme.txt +6 -1
gravityforms-zero-spam.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Gravity Forms Zero Spam
4
  * Plugin URI: https://gravityview.co?utm_source=plugin&utm_campaign=zero-spam&utm_content=pluginuri
5
  * Description: Enhance Gravity Forms to include effective anti-spam measures—without using a CAPTCHA.
6
- * Version: 1.2.1
7
  * Author: GravityView
8
  * Author URI: https://gravityview.co?utm_source=plugin&utm_campaign=zero-spam&utm_content=authoruri
9
  * License: GPL-2.0+
@@ -77,12 +77,15 @@ class GF_Zero_Spam {
77
 
78
  $spam_key = esc_js( $this->get_key() );
79
 
 
 
80
  $script = <<<EOD
81
  jQuery( document ).on( 'submit.gravityforms', '.gform_wrapper form', function( event ) {
82
- jQuery( '<input>' ).attr( 'type', 'hidden' )
 
83
  .attr( 'name', 'gf_zero_spam_key' )
84
  .attr( 'value', '{$spam_key}' )
85
- .appendTo( jQuery( this ) );
86
  } );
87
  EOD;
88
 
3
  * Plugin Name: Gravity Forms Zero Spam
4
  * Plugin URI: https://gravityview.co?utm_source=plugin&utm_campaign=zero-spam&utm_content=pluginuri
5
  * Description: Enhance Gravity Forms to include effective anti-spam measures—without using a CAPTCHA.
6
+ * Version: 1.2.2
7
  * Author: GravityView
8
  * Author URI: https://gravityview.co?utm_source=plugin&utm_campaign=zero-spam&utm_content=authoruri
9
  * License: GPL-2.0+
77
 
78
  $spam_key = esc_js( $this->get_key() );
79
 
80
+ $autocomplete = RGFormsModel::is_html5_enabled() ? ".attr( 'autocomplete', 'off' )\n\t\t" : '';
81
+
82
  $script = <<<EOD
83
  jQuery( document ).on( 'submit.gravityforms', '.gform_wrapper form', function( event ) {
84
+ jQuery( '<input>' )
85
+ .attr( 'type', 'hidden' )
86
  .attr( 'name', 'gf_zero_spam_key' )
87
  .attr( 'value', '{$spam_key}' )
88
+ $autocomplete.appendTo( jQuery( this ) );
89
  } );
90
  EOD;
91
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: gravityview
3
  Tags: gravityforms, gravity forms, anti-spam, antispam, spam, spam-blocker, spambot, spammer, add-ons, honeypot
4
  Requires at least: 3.0.1
5
- Tested up to: 6.0
6
  Stable tag: trunk
7
  Requires PHP: 5.2.6
8
  License: GPLv2 or later
@@ -97,6 +97,11 @@ First, **de-activate and re-activate the plugin**. Then let us know on the suppo
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
100
  = 1.2.1 on February 16, 2022 =
101
 
102
  * Improved: Don't check for spam on the Gravity Forms Preview page
2
  Contributors: gravityview
3
  Tags: gravityforms, gravity forms, anti-spam, antispam, spam, spam-blocker, spambot, spammer, add-ons, honeypot
4
  Requires at least: 3.0.1
5
+ Tested up to: 6.0.1
6
  Stable tag: trunk
7
  Requires PHP: 5.2.6
8
  License: GPLv2 or later
97
 
98
  == Changelog ==
99
 
100
+ = 1.2.2 on August 11, 2022 =
101
+
102
+ * Improved: Prevent autocomplete on the hidden field. This may help prevent some reported false-positives.
103
+ * Tested with WordPress 6.0.1
104
+
105
  = 1.2.1 on February 16, 2022 =
106
 
107
  * Improved: Don't check for spam on the Gravity Forms Preview page