Skip to content

Commit

Permalink
Merge pull request #7 from gravityview/develop
Browse files Browse the repository at this point in the history
Fix inline script conflict
  • Loading branch information
zackkatz authored Apr 22, 2021
2 parents f4d3346 + 818453d commit 917c350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gravityforms-zero-spam.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Gravity Forms Zero Spam
* Plugin URI: https://gravityview.co?utm_source=plugin&utm_campaign=zero-spam&utm_content=pluginuri
* Description: Enhance Gravity Forms to include effective anti-spam measures—without using a CAPTCHA.
* Version: 1.1
* Version: 1.1.1
* Author: GravityView
* Author URI: https://gravityview.co?utm_source=plugin&utm_campaign=zero-spam&utm_content=authoruri
* License: GPL-2.0+
Expand Down Expand Up @@ -83,7 +83,7 @@ public function add_key_field( $form ) {
} );
EOD;

GFFormDisplay::add_init_script( $form['id'], 'placeholders', GFFormDisplay::ON_PAGE_RENDER, $script );
GFFormDisplay::add_init_script( $form['id'], 'gf-zero-spam', GFFormDisplay::ON_PAGE_RENDER, $script );
}

/**
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ No. For that, we recommend Ben Marshall‘s [WordPress Zero Spam plugin](https:/

== Changelog ==

= 1.1 on April 2021 =
= 1.1.1 on April 22, 2021 =

* Fixed: Script not being correctly loaded using Gravity Forms' inline JavaScript

= 1.1 on April 21, 2021 =

* Improved: The JavaScript code that adds the spam-catching field is now output at the same time as Gravity Forms' inline JavaScript.
- The script is only loaded when forms are displayed
Expand Down

0 comments on commit 917c350

Please sign in to comment.