WP Armour – Honeypot Anti Spam - Version 1.8.5

Version Description

  • Added support for WooCommerce Reviews Pro.
  • Added support for Fluent Form Conversional Forms.
Download this release

Release Info

Developer dnesscarkey
Plugin Icon 128x128 WP Armour – Honeypot Anti Spam
Version 1.8.5
Comparing to
See all releases

Code changes from version 1.8.4 to 1.8.5

includes/integration/wpa_bbpress.php CHANGED
@@ -6,7 +6,7 @@ add_action( 'bbp_new_reply_pre_extras','wpa_bbp_extra_validation');
6
 
7
  function wpa_bbp_extra_validation(){
8
  if (wpa_check_is_spam($_POST)){
9
- do_action('wpa_handle_spammers','bbpress');
10
  bbp_add_error( 'bbp_extra_email', __( $GLOBALS['wpa_error_message'], 'bbpress' ) );
11
  }
12
  }
6
 
7
  function wpa_bbp_extra_validation(){
8
  if (wpa_check_is_spam($_POST)){
9
+ do_action('wpa_handle_spammers','bbpress', $_POST);
10
  bbp_add_error( 'bbp_extra_email', __( $GLOBALS['wpa_error_message'], 'bbpress' ) );
11
  }
12
  }
includes/integration/wpa_calderaforms.php CHANGED
@@ -2,7 +2,7 @@
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  function wpa_calderaforms_extra_validation( ) {
4
  if (wpa_check_is_spam($_POST)){
5
- do_action('wpa_handle_spammers','calderaforms');
6
  die($GLOBALS['wpa_error_message']);
7
  }
8
  };
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  function wpa_calderaforms_extra_validation( ) {
4
  if (wpa_check_is_spam($_POST)){
5
+ do_action('wpa_handle_spammers','calderaforms', $_POST);
6
  die($GLOBALS['wpa_error_message']);
7
  }
8
  };
includes/integration/wpa_contactform7.php CHANGED
@@ -4,7 +4,7 @@ add_filter( 'wpcf7_validate', 'wpa_contactform7_extra_validation', 10, 2 );
4
 
5
  function wpa_contactform7_extra_validation($result, $tags){
6
  if (wpa_check_is_spam($_POST)){
7
- do_action('wpa_handle_spammers','contactform7');
8
  $result->invalidate('', $GLOBALS['wpa_error_message']);
9
  }
10
  return $result;
4
 
5
  function wpa_contactform7_extra_validation($result, $tags){
6
  if (wpa_check_is_spam($_POST)){
7
+ do_action('wpa_handle_spammers','contactform7', $_POST);
8
  $result->invalidate('', $GLOBALS['wpa_error_message']);
9
  }
10
  return $result;
includes/integration/wpa_diviform.php CHANGED
@@ -9,7 +9,7 @@ foreach($_POST as $param => $value){
9
 
10
  if(!empty($is_divi_form) && $is_divi_form == 'true'){
11
  if (wpa_check_is_spam($_POST)){
12
- do_action('wpa_handle_spammers','divi_form');
13
  echo "<div id='et_pb_contact_form{$divi_form_additional}'><p>".$GLOBALS['wpa_error_message']."</p><div></div></div>";
14
  die();
15
  }
9
 
10
  if(!empty($is_divi_form) && $is_divi_form == 'true'){
11
  if (wpa_check_is_spam($_POST)){
12
+ do_action('wpa_handle_spammers','divi_form', $_POST);
13
  echo "<div id='et_pb_contact_form{$divi_form_additional}'><p>".$GLOBALS['wpa_error_message']."</p><div></div></div>";
14
  die();
15
  }
includes/integration/wpa_elementor.php CHANGED
@@ -4,7 +4,7 @@ function wpa_elementor_extra_validation( $record, $ajax_handler ) {
4
  if (wpa_check_is_spam($_POST)){
5
  $all_fields = $record->get( 'fields' );
6
  $firstField = array_key_first($all_fields);
7
- do_action('wpa_handle_spammers','elementor');
8
  $ajax_handler->add_error($all_fields[$firstField]['id'], $GLOBALS['wpa_error_message']);
9
  }
10
  };
4
  if (wpa_check_is_spam($_POST)){
5
  $all_fields = $record->get( 'fields' );
6
  $firstField = array_key_first($all_fields);
7
+ do_action('wpa_handle_spammers','elementor', $_POST);
8
  $ajax_handler->add_error($all_fields[$firstField]['id'], $GLOBALS['wpa_error_message']);
9
  }
10
  };
includes/integration/wpa_fluentform.php CHANGED
@@ -2,8 +2,10 @@
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  function wpa_fluent_form_extra_validation($insertData, $data, $form) {
4
  if (wpa_check_is_spam($data)){
5
- do_action('wpa_handle_spammers','fluent_forms');
6
- die($GLOBALS['wpa_error_message']);
 
 
7
  }
8
  };
9
  add_action( 'fluentform_before_insert_submission', 'wpa_fluent_form_extra_validation', 10, 3 );
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  function wpa_fluent_form_extra_validation($insertData, $data, $form) {
4
  if (wpa_check_is_spam($data)){
5
+ do_action('wpa_handle_spammers','fluent_forms', $data);
6
+ //die($GLOBALS['wpa_error_message']);
7
+ wp_send_json_error(['errors' => $GLOBALS['wpa_error_message']]);
8
+ wp_die();
9
  }
10
  };
11
  add_action( 'fluentform_before_insert_submission', 'wpa_fluent_form_extra_validation', 10, 3 );
includes/integration/wpa_formidable.php CHANGED
@@ -4,7 +4,7 @@ add_filter( 'frm_validate_entry', 'wpa_formidable_extra_validation', 10, 2 );
4
 
5
  function wpa_formidable_extra_validation($errors, $values){
6
  if (wpa_check_is_spam($_POST)){
7
- do_action('wpa_handle_spammers','formidable');
8
  $errors['my_error'] = $GLOBALS['wpa_error_message'];
9
  }
10
  return $errors;
4
 
5
  function wpa_formidable_extra_validation($errors, $values){
6
  if (wpa_check_is_spam($_POST)){
7
+ do_action('wpa_handle_spammers','formidable', $_POST);
8
  $errors['my_error'] = $GLOBALS['wpa_error_message'];
9
  }
10
  return $errors;
includes/integration/wpa_gravityforms.php CHANGED
@@ -5,7 +5,7 @@ add_action( 'gform_validation', 'wpa_gravityforms_extra_validation');
5
  function wpa_gravityforms_extra_validation($validation_result ){
6
  if (wpa_check_is_spam($_POST)){
7
  $form = $validation_result['form'];
8
- do_action('wpa_handle_spammers','gravityforms');
9
  $validation_result['is_valid'] = false;
10
  foreach( $form['fields'] as &$field ) {
11
  if ( $field->id == '1' ) {
5
  function wpa_gravityforms_extra_validation($validation_result ){
6
  if (wpa_check_is_spam($_POST)){
7
  $form = $validation_result['form'];
8
+ do_action('wpa_handle_spammers','gravityforms', $_POST);
9
  $validation_result['is_valid'] = false;
10
  foreach( $form['fields'] as &$field ) {
11
  if ( $field->id == '1' ) {
includes/integration/wpa_toolsetform.php CHANGED
@@ -6,7 +6,7 @@ function wpa_toolsetform_extra_validation($error_fields, $form_data)
6
  {
7
  list($fields,$errors)=$error_fields;
8
  if (wpa_check_is_spam($_POST)){
9
- do_action('wpa_handle_spammers','toolset_form');
10
  die($GLOBALS['wpa_error_message']);
11
  }
12
  return array($fields,$errors);
6
  {
7
  list($fields,$errors)=$error_fields;
8
  if (wpa_check_is_spam($_POST)){
9
+ do_action('wpa_handle_spammers','toolset_form', $_POST);
10
  die($GLOBALS['wpa_error_message']);
11
  }
12
  return array($fields,$errors);
includes/integration/wpa_wpcomment.php CHANGED
@@ -5,7 +5,7 @@ add_filter( 'preprocess_comment', 'wpa_wpcomment_extra_validation' );
5
 
6
  function wpa_wpcomment_extra_validation( $commentdata ) {
7
  if (wpa_check_is_spam($_POST)){
8
- do_action('wpa_handle_spammers','wpcomment');
9
  wp_die( __( $GLOBALS['wpa_error_message'] ) );
10
  }
11
  return $commentdata;
5
 
6
  function wpa_wpcomment_extra_validation( $commentdata ) {
7
  if (wpa_check_is_spam($_POST)){
8
+ do_action('wpa_handle_spammers','wpcomment', $_POST);
9
  wp_die( __( $GLOBALS['wpa_error_message'] ) );
10
  }
11
  return $commentdata;
includes/integration/wpa_wpforms.php CHANGED
@@ -4,7 +4,7 @@ add_filter( 'wpforms_process_before', 'wpa_wpforms_extra_validation', 10, 2 );
4
 
5
  function wpa_wpforms_extra_validation($entry, $form_data){
6
  if (wpa_check_is_spam($_POST)){
7
- do_action('wpa_handle_spammers','wpforms');
8
  wpforms()->process->errors[ $form_data['id'] ][ '0' ] = $GLOBALS['wpa_error_message'];
9
  }
10
  }
4
 
5
  function wpa_wpforms_extra_validation($entry, $form_data){
6
  if (wpa_check_is_spam($_POST)){
7
+ do_action('wpa_handle_spammers','wpforms', $_POST);
8
  wpforms()->process->errors[ $form_data['id'] ][ '0' ] = $GLOBALS['wpa_error_message'];
9
  }
10
  }
includes/integration/wpa_wpregistration.php CHANGED
@@ -10,7 +10,7 @@ add_filter( 'registration_errors', 'wpa_wpregistration_extra_validation', 10, 3
10
 
11
  function wpa_wpregistration_extra_validation( $errors, $sanitized_user_login, $user_email ) {
12
  if (wpa_check_is_spam($_POST)){
13
- do_action('wpa_handle_spammers','wpregistration');
14
  $errors->add( 'wpa_extra_email', __($GLOBALS['wpa_error_message']) );
15
  }
16
  return $errors;
10
 
11
  function wpa_wpregistration_extra_validation( $errors, $sanitized_user_login, $user_email ) {
12
  if (wpa_check_is_spam($_POST)){
13
+ do_action('wpa_handle_spammers','wpregistration', $_POST);
14
  $errors->add( 'wpa_extra_email', __($GLOBALS['wpa_error_message']) );
15
  }
16
  return $errors;
includes/js/wpa.js CHANGED
@@ -4,6 +4,7 @@ jQuery(document).ready(function(){
4
  if (wpa_add_test == 'yes'){
5
  wpa_add_test_block();
6
  }
 
7
  });
8
 
9
  function wpa_act_as_spam(){
@@ -31,7 +32,16 @@ function wpa_add_honeypot_field(){
31
  jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field); // Toolset Forms
32
  jQuery('form.et_pb_contact_form').append(wpa_hidden_field); // Divi Form
33
  jQuery('form.elementor-form').append(wpa_hidden_field); // FOR Elementor
34
- jQuery('form.frm-fluent-form').append(wpa_hidden_field); // FOR Fluent Forms
 
 
 
 
 
 
 
 
 
35
 
36
  jQuery(wpa_hidden_field).insertAfter('input.wpa_initiator'); // FOR WPA INITIATOR (WP registration)
37
  }
@@ -44,4 +54,8 @@ function wpa_add_test_block(){
44
 
45
  function wpa_remove_honeypot_field(){
46
  jQuery('.wpa_hidden_field').remove();
 
 
 
 
47
  }
4
  if (wpa_add_test == 'yes'){
5
  wpa_add_test_block();
6
  }
7
+
8
  });
9
 
10
  function wpa_act_as_spam(){
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.elementor-form').append(wpa_hidden_field); // FOR Elementor
35
+ jQuery('form.form-contribution').append(wpa_hidden_field); //WooCommerce Reviews Pro
36
+
37
+ // FOR FLUENT FORMS
38
+ jQuery('form.frm-fluent-form').append(wpa_hidden_field); // FOR Fluent Forms
39
+ jQuery('.ff_conv_app').append(wpa_hidden_field); // FOR Fluent Convertional Forms
40
+
41
+ if (typeof fluent_forms_global_var_1 !== 'undefined') { // QUICK HACK FOR FLUENT FORMS CONVERSIONAL
42
+ fluent_forms_global_var_1.extra_inputs[wpa_field_name] = wpa_unique_id;
43
+ }
44
+ // EOF FLUENT FORMS
45
 
46
  jQuery(wpa_hidden_field).insertAfter('input.wpa_initiator'); // FOR WPA INITIATOR (WP registration)
47
  }
54
 
55
  function wpa_remove_honeypot_field(){
56
  jQuery('.wpa_hidden_field').remove();
57
+
58
+ if (typeof fluent_forms_global_var_1 !== 'undefined') {
59
+ delete fluent_forms_global_var_1.extra_inputs[wpa_field_name];
60
+ }
61
  }
includes/views/wpa_main.php CHANGED
@@ -21,7 +21,6 @@ if (isset($_GET['tab']) && array_key_exists($_GET['tab'],$wpa_tabs)){
21
 
22
  <div class="wrap">
23
 
24
-
25
  <h1>WP Armour - HoneyPot Anti Spam</h1>
26
 
27
  <nav class="nav-tab-wrapper">
21
 
22
  <div class="wrap">
23
 
 
24
  <h1>WP Armour - HoneyPot Anti Spam</h1>
25
 
26
  <nav class="nav-tab-wrapper">
includes/wpa_functions.php CHANGED
@@ -7,18 +7,13 @@ function wpa_load_scripts(){
7
  $wpa_add_test = 'no';
8
  }
9
 
10
- //if (!isset($_COOKIE['wpa_unique_id'])) {
11
- $wpa_unique_id = rand(111, 99999);
12
- // setcookie('wpa_unique_id',$wpa_unique_id, '0');
13
- //} else {
14
- //$wpa_unique_id = $_COOKIE['wpa_unique_id'];
15
- //}
16
 
17
  $wpa_hidden_field = "<span class='wpa_hidden_field' style='display:none;height:0;width:0;'><input type='text' name='".$GLOBALS['wpa_field_name']."' value='".$wpa_unique_id."' /></span>";
18
 
19
- echo '<script>var wpa_hidden_field = "'.$wpa_hidden_field.'"; var wpa_add_test = "'.$wpa_add_test.'";</script>';
20
- wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), '1.8.4', true);
21
- wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.8.4');
22
  }
23
 
24
  function wpa_plugin_menu(){
@@ -30,7 +25,6 @@ function wpa_options(){
30
  'settings' => array('name'=>'Settings','path'=>'wpa_settings.php'),
31
  'stats' => array('name'=>'Statistics','path'=>'wpa_stats.php'),
32
  'extended_version' => array('name'=>"What's in WP Armour Extended ?",'path'=>'wpa_extended_version.php')
33
-
34
  );
35
 
36
  $wpa_tabs = apply_filters( 'wpa_tabs_filter', $wpa_tabs);
@@ -61,9 +55,18 @@ function wpa_save_settings(){
61
  return $return;
62
  }
63
 
64
- function wpa_save_stats($wp_system){
65
  $currentStats = json_decode(get_option('wpa_stats'), true);
66
- $timeArray = array('today','week','month');
 
 
 
 
 
 
 
 
 
67
 
68
  foreach ($timeArray as $key => $time) {
69
  if (wpa_check_date($currentStats['total'][$time]['date'],$time)){
@@ -81,7 +84,7 @@ function wpa_save_stats($wp_system){
81
  $currentStats['total'][$time]['date'] = date('Ymd');
82
  $currentStats[$wp_system][$time]['date'] = date('Ymd');
83
  }
84
-
85
  $currentStats['total']['all_time'] += 1;
86
  @$currentStats[$wp_system]['all_time'] += 1;
87
  update_option('wpa_stats', json_encode($currentStats));
7
  $wpa_add_test = 'no';
8
  }
9
 
10
+ $wpa_unique_id = rand(111, 99999);
 
 
 
 
 
11
 
12
  $wpa_hidden_field = "<span class='wpa_hidden_field' style='display:none;height:0;width:0;'><input type='text' name='".$GLOBALS['wpa_field_name']."' value='".$wpa_unique_id."' /></span>";
13
 
14
+ wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), '1.8.5', true);
15
+ wp_add_inline_script( 'wpascript', 'var wpa_hidden_field = "'.$wpa_hidden_field.'"; var wpa_add_test = "'.$wpa_add_test.'"; var wpa_field_name = "'.$GLOBALS['wpa_field_name'].'"; wpa_unique_id = "'.$wpa_unique_id.'"; ');
16
+ wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.8.5');
17
  }
18
 
19
  function wpa_plugin_menu(){
25
  'settings' => array('name'=>'Settings','path'=>'wpa_settings.php'),
26
  'stats' => array('name'=>'Statistics','path'=>'wpa_stats.php'),
27
  'extended_version' => array('name'=>"What's in WP Armour Extended ?",'path'=>'wpa_extended_version.php')
 
28
  );
29
 
30
  $wpa_tabs = apply_filters( 'wpa_tabs_filter', $wpa_tabs);
55
  return $return;
56
  }
57
 
58
+ function wpa_save_stats($wp_system, $data){
59
  $currentStats = json_decode(get_option('wpa_stats'), true);
60
+ $timeArray = array('today','week','month');
61
+
62
+ if (!array_key_exists($wp_system,$currentStats)){
63
+ $currentStats[$wp_system]['today']['count'] = 0;
64
+ $currentStats[$wp_system]['week']['count'] = 0;
65
+ $currentStats[$wp_system]['month']['count'] = 0;
66
+ $currentStats[$wp_system]['today']['date'] = date('Ymd');
67
+ $currentStats[$wp_system]['week']['date'] = date('Ymd');
68
+ $currentStats[$wp_system]['month']['date'] = date('Ymd');
69
+ }
70
 
71
  foreach ($timeArray as $key => $time) {
72
  if (wpa_check_date($currentStats['total'][$time]['date'],$time)){
84
  $currentStats['total'][$time]['date'] = date('Ymd');
85
  $currentStats[$wp_system][$time]['date'] = date('Ymd');
86
  }
87
+
88
  $currentStats['total']['all_time'] += 1;
89
  @$currentStats[$wp_system]['all_time'] += 1;
90
  update_option('wpa_stats', json_encode($currentStats));
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.8
7
- Stable tag: 1.8.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -19,7 +19,6 @@ This plugins block spam submissions using honeypot anti spam technic. No Captcha
19
  * WP Registraton
20
  * BBPress Forum (<a href="https://bbpress.org">bbpress.org</a>)
21
  * Contact Form 7 (<a href="https://wordpress.org/plugins/contact-form-7">wordpress.org/plugins/contact-form-7</a>)
22
- * Ninja Forms (<a href="https://ninjaforms.com">https://ninjaforms.com</a>)
23
  * Gravity Forms (For Non Ajax and Single Page/Step Form - <a href="https://www.gravityforms.com">gravityforms.com</a>)
24
  * WPForms (<a href="https://wpforms.com">wpforms.com</a>)
25
  * Formidable Forms (<a href="https://formidableforms.com">formidableforms.com</a>)
@@ -28,6 +27,8 @@ This plugins block spam submissions using honeypot anti spam technic. No Captcha
28
  * Elementor Forms (<a href="https://elementor.com">elementor.com</a>)
29
  * Fluent Forms (<a href="https://fluentforms.com">fluentforms.com</a>)
30
  * Divi Theme Contact Form (<a href="https://www.elegantthemes.com">elegantthemes.com</a>)
 
 
31
  * WooCommerce Reviews (<a href="https://woocommerce.com">woocommerce.com</a>)
32
 
33
  <strong>WP Armour Extended (Paid Version) supports additional anti spam protection and features.</strong>
@@ -35,6 +36,7 @@ This plugins block spam submissions using honeypot anti spam technic. No Captcha
35
  * WooCommerce Checkout & Registration (<a href="https://woocommerce.com">woocommerce.com</a>)
36
  * Easy Digital Downloads Checkout and Registration (<a href="https://easydigitaldownloads.com">easydigitaldownloads.com</a>)
37
  * QuForm Contact Form (<a href="https://www.quform.com">quform.com</a>)
 
38
  * Gravity Forms (For Ajax Based and Multi Step Forms - <a href="https://www.gravityforms.com">gravityforms.com</a>)
39
  * MC4WP: Mailchimp for WordPress (<a href="https://www.mc4wp.com">mc4wp.com</a>)
40
  * S2 Members (<a href="https://s2member.com">s2member.com</a>)
@@ -133,6 +135,10 @@ With WP Armour - Honeypot Anti Spam plugin it is No. But if you want you can use
133
 
134
  == Changelog ==
135
 
 
 
 
 
136
  = = 1.8.4 =
137
  * removed complicated spam checker as it was creating issue for some users.
138
 
4
  Tags: anti spam, spam checker, spam filter, gravity forms, contact form 7
5
  Requires at least: 3.0
6
  Tested up to: 5.8
7
+ Stable tag: 1.8.5
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
19
  * WP Registraton
20
  * BBPress Forum (<a href="https://bbpress.org">bbpress.org</a>)
21
  * Contact Form 7 (<a href="https://wordpress.org/plugins/contact-form-7">wordpress.org/plugins/contact-form-7</a>)
 
22
  * Gravity Forms (For Non Ajax and Single Page/Step Form - <a href="https://www.gravityforms.com">gravityforms.com</a>)
23
  * WPForms (<a href="https://wpforms.com">wpforms.com</a>)
24
  * Formidable Forms (<a href="https://formidableforms.com">formidableforms.com</a>)
27
  * Elementor Forms (<a href="https://elementor.com">elementor.com</a>)
28
  * Fluent Forms (<a href="https://fluentforms.com">fluentforms.com</a>)
29
  * Divi Theme Contact Form (<a href="https://www.elegantthemes.com">elegantthemes.com</a>)
30
+ * Theme My Login ( https://wordpress.org/plugins/theme-my-login/ )
31
+ * WooCommerce Reviews Pro
32
  * WooCommerce Reviews (<a href="https://woocommerce.com">woocommerce.com</a>)
33
 
34
  <strong>WP Armour Extended (Paid Version) supports additional anti spam protection and features.</strong>
36
  * WooCommerce Checkout & Registration (<a href="https://woocommerce.com">woocommerce.com</a>)
37
  * Easy Digital Downloads Checkout and Registration (<a href="https://easydigitaldownloads.com">easydigitaldownloads.com</a>)
38
  * QuForm Contact Form (<a href="https://www.quform.com">quform.com</a>)
39
+ * Ninja Forms (<a href="https://ninjaforms.com">https://ninjaforms.com</a>)
40
  * Gravity Forms (For Ajax Based and Multi Step Forms - <a href="https://www.gravityforms.com">gravityforms.com</a>)
41
  * MC4WP: Mailchimp for WordPress (<a href="https://www.mc4wp.com">mc4wp.com</a>)
42
  * S2 Members (<a href="https://s2member.com">s2member.com</a>)
135
 
136
  == Changelog ==
137
 
138
+ = = 1.8.5 =
139
+ * Added support for WooCommerce Reviews Pro.
140
+ * Added support for Fluent Form Conversional Forms.
141
+
142
  = = 1.8.4 =
143
  * removed complicated spam checker as it was creating issue for some users.
144
 
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.8.4
9
  Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
10
  */
11
 
@@ -35,7 +35,7 @@ add_action( 'init', function(){
35
  add_action('wp_enqueue_scripts','wpa_load_scripts');
36
  add_action('login_enqueue_scripts','wpa_load_scripts');
37
  add_action('admin_menu', 'wpa_plugin_menu');
38
- add_action('wpa_handle_spammers','wpa_save_stats',10,1);
39
 
40
 
41
  register_activation_hook( __FILE__, 'wpa_plugin_activation' );
5
  Plugin URI: http://wordpress.org/plugins/honeypot/
6
  Description: Add honeypot anti spam protection.
7
  Author: Dnesscarkey
8
+ Version: 1.8.5
9
  Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
10
  */
11
 
35
  add_action('wp_enqueue_scripts','wpa_load_scripts');
36
  add_action('login_enqueue_scripts','wpa_load_scripts');
37
  add_action('admin_menu', 'wpa_plugin_menu');
38
+ add_action('wpa_handle_spammers','wpa_save_stats',10,2);
39
 
40
 
41
  register_activation_hook( __FILE__, 'wpa_plugin_activation' );