Version Description
- Remove WooCommerce checkout
Download this release
Release Info
Developer | dnesscarkey |
Plugin | WP Armour – Honeypot Anti Spam |
Version | 1.5.9 |
Comparing to | |
See all releases |
Code changes from version 1.5.8 to 1.5.9
- includes/js/wpa.js +1 -1
- includes/wpa_functions.php +2 -3
- readme.txt +7 -3
- wp-armour.php +1 -1
includes/js/wpa.js
CHANGED
@@ -32,7 +32,6 @@ function wpa_add_honeypot_field(){
|
|
32 |
jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field); // Toolset Forms
|
33 |
jQuery('form.et_pb_contact_form').append(wpa_hidden_field); // Divi Form
|
34 |
jQuery('form.woocommerce-form-register').append(wpa_hidden_field); // WooCommerce Registration
|
35 |
-
jQuery('form.woocommerce-checkout').append(wpa_hidden_field); // WooCommerce Checkout
|
36 |
jQuery('form.register').append(wpa_hidden_field); // WooCommerce Register (https://wordpress.org/support/topic/error-spamming-or-your-javascript-is-disabled)
|
37 |
jQuery('form.elementor-form').append(wpa_hidden_field); // FOR Elementor
|
38 |
jQuery('form.frm-fluent-form').append(wpa_hidden_field); // FOR Fluent Forms
|
@@ -40,6 +39,7 @@ function wpa_add_honeypot_field(){
|
|
40 |
|
41 |
function wpa_add_test_block(){
|
42 |
checkingTest = '<div class="wpa-test-msg"><strong>WP Armour ( Only visible to site administrators. Not visible to other users. )</strong><br />This form has a honeypot trap enabled. If you want to act as spam bot for testing purposes, please click the button below.<br/><span class="wpa-button" onclick="wpa_act_as_spam()" data-actiontype="remove">Act as Spam Bot</span></div>';
|
|
|
43 |
jQuery('span.wpa_hidden_field').after(checkingTest);
|
44 |
}
|
45 |
|
32 |
jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field); // Toolset Forms
|
33 |
jQuery('form.et_pb_contact_form').append(wpa_hidden_field); // Divi Form
|
34 |
jQuery('form.woocommerce-form-register').append(wpa_hidden_field); // WooCommerce Registration
|
|
|
35 |
jQuery('form.register').append(wpa_hidden_field); // WooCommerce Register (https://wordpress.org/support/topic/error-spamming-or-your-javascript-is-disabled)
|
36 |
jQuery('form.elementor-form').append(wpa_hidden_field); // FOR Elementor
|
37 |
jQuery('form.frm-fluent-form').append(wpa_hidden_field); // FOR Fluent Forms
|
39 |
|
40 |
function wpa_add_test_block(){
|
41 |
checkingTest = '<div class="wpa-test-msg"><strong>WP Armour ( Only visible to site administrators. Not visible to other users. )</strong><br />This form has a honeypot trap enabled. If you want to act as spam bot for testing purposes, please click the button below.<br/><span class="wpa-button" onclick="wpa_act_as_spam()" data-actiontype="remove">Act as Spam Bot</span></div>';
|
42 |
+
jQuery('.wpa-test-msg').remove(); // Clear First
|
43 |
jQuery('span.wpa_hidden_field').after(checkingTest);
|
44 |
}
|
45 |
|
includes/wpa_functions.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
function wpa_load_scripts(){
|
4 |
-
|
5 |
if (current_user_can('activate_plugins')){
|
6 |
$wpa_add_test = 'yes';
|
7 |
} else {
|
@@ -9,8 +8,8 @@ function wpa_load_scripts(){
|
|
9 |
}
|
10 |
|
11 |
echo '<script>var wpa_hidden_field = "'.$GLOBALS['wpa_hidden_field'].'"; var wpa_add_test = "'.$wpa_add_test.'";</script>';
|
12 |
-
wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), 1.
|
13 |
-
wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.
|
14 |
}
|
15 |
|
16 |
function wpa_plugin_menu(){
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
function wpa_load_scripts(){
|
|
|
4 |
if (current_user_can('activate_plugins')){
|
5 |
$wpa_add_test = 'yes';
|
6 |
} else {
|
8 |
}
|
9 |
|
10 |
echo '<script>var wpa_hidden_field = "'.$GLOBALS['wpa_hidden_field'].'"; var wpa_add_test = "'.$wpa_add_test.'";</script>';
|
11 |
+
wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), 1.5, true);
|
12 |
+
wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.5');
|
13 |
}
|
14 |
|
15 |
function wpa_plugin_menu(){
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dnesscarkey
|
|
3 |
Donate link: https://dineshkarki.com.np/wp-armour-anti-spam
|
4 |
Tags: anti spam, spam checker, spam filter, gravity forms, contact form 7
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 5.6
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -31,7 +31,7 @@ As of now spam bots are unable to handle javascript and we exploit this point to
|
|
31 |
* For Elementor Forms
|
32 |
* For Fluent Forms
|
33 |
* For Divi Theme Contact Form
|
34 |
-
* For WooCommerce registration
|
35 |
|
36 |
<strong>How our plugin is different than other honeypot anti spam plugins ? </strong>
|
37 |
|
@@ -47,6 +47,7 @@ If you have any issue, you can write to using <a title="WP Armour - Honeypot Ant
|
|
47 |
|
48 |
<strong>WP Armour - Anti Spam Extended</strong>
|
49 |
|
|
|
50 |
* Logs spam bot IPs.
|
51 |
* Block spam bot IPs if multiple spam is submitted. Add extra level of anti spam filter based on IPs. Needed to stop spam bot using unwanted bandwidth and save valuable server resource.
|
52 |
* View what spam bot are trying to submit, so that you are sure our plugin is blocking legit spam bots.
|
@@ -119,6 +120,9 @@ With WP Armour - Honeypot Anti Spam plugin it is No. But if you want you can use
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
122 |
= = 1.5.8 =
|
123 |
* Fixed Extended verion save settings.
|
124 |
|
3 |
Donate link: https://dineshkarki.com.np/wp-armour-anti-spam
|
4 |
Tags: anti spam, spam checker, spam filter, gravity forms, contact form 7
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.6.1
|
7 |
+
Stable tag: 1.5.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
31 |
* For Elementor Forms
|
32 |
* For Fluent Forms
|
33 |
* For Divi Theme Contact Form
|
34 |
+
* For WooCommerce registration
|
35 |
|
36 |
<strong>How our plugin is different than other honeypot anti spam plugins ? </strong>
|
37 |
|
47 |
|
48 |
<strong>WP Armour - Anti Spam Extended</strong>
|
49 |
|
50 |
+
* For WooCommerce Checkout
|
51 |
* Logs spam bot IPs.
|
52 |
* Block spam bot IPs if multiple spam is submitted. Add extra level of anti spam filter based on IPs. Needed to stop spam bot using unwanted bandwidth and save valuable server resource.
|
53 |
* View what spam bot are trying to submit, so that you are sure our plugin is blocking legit spam bots.
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= = 1.5.9 =
|
124 |
+
* Remove WooCommerce checkout
|
125 |
+
|
126 |
= = 1.5.8 =
|
127 |
* Fixed Extended verion save settings.
|
128 |
|
wp-armour.php
CHANGED
@@ -5,7 +5,7 @@ Plugin Name: WP Armour - Honeypot Anti Spam
|
|
5 |
Plugin URI: http://wordpress.org/plugins/honeypot/
|
6 |
Description: Add honeypot anti spam protection.
|
7 |
Author: Dnesscarkey
|
8 |
-
Version: 1.5.
|
9 |
Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
|
10 |
*/
|
11 |
|
5 |
Plugin URI: http://wordpress.org/plugins/honeypot/
|
6 |
Description: Add honeypot anti spam protection.
|
7 |
Author: Dnesscarkey
|
8 |
+
Version: 1.5.9
|
9 |
Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
|
10 |
*/
|
11 |
|