Advanced noCaptcha & invisible Captcha - Version 5.5

Version Description

  • Fix: Multisite site signup during registration failed due to double verification.
  • Fix: Comment reply failed from back-end.
Download this release

Release Info

Developer shamim51
Plugin Icon 128x128 Advanced noCaptcha & invisible Captcha
Version 5.5
Comparing to
See all releases

Code changes from version 5.4 to 5.5

advanced-nocaptcha-recaptcha.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced noCaptcha & invisible Captcha
4
  Plugin URI: https://www.shamimsplugins.com/contact-us/
5
  Description: Show noCaptcha or invisible captcha in Comment Form, bbPress, BuddyPress, WooCommerce, CF7, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
6
- Version: 5.4
7
  Author: Shamim Hasan
8
  Author URI: https://www.shamimsplugins.com/contact-us/
9
  Text Domain: advanced-nocaptcha-recaptcha
@@ -40,7 +40,7 @@ class ANR {
40
  }
41
 
42
  private function constants() {
43
- define( 'ANR_PLUGIN_VERSION', '5.4' );
44
  define( 'ANR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
45
  define( 'ANR_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
46
  define( 'ANR_PLUGIN_FILE', __FILE__ );
3
  Plugin Name: Advanced noCaptcha & invisible Captcha
4
  Plugin URI: https://www.shamimsplugins.com/contact-us/
5
  Description: Show noCaptcha or invisible captcha in Comment Form, bbPress, BuddyPress, WooCommerce, CF7, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
6
+ Version: 5.5
7
  Author: Shamim Hasan
8
  Author URI: https://www.shamimsplugins.com/contact-us/
9
  Text Domain: advanced-nocaptcha-recaptcha
40
  }
41
 
42
  private function constants() {
43
+ define( 'ANR_PLUGIN_VERSION', '5.5' );
44
  define( 'ANR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
45
  define( 'ANR_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
46
  define( 'ANR_PLUGIN_FILE', __FILE__ );
anr-captcha-class.php CHANGED
@@ -50,6 +50,10 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
50
  if ( anr_is_form_enabled( 'ms_user_signup' ) && is_multisite() ) {
51
  add_action( 'signup_extra_fields', array( $this, 'ms_form_field' ), 99 );
52
  add_filter( 'wpmu_validate_user_signup', array( $this, 'ms_form_field_verify' ) );
 
 
 
 
53
  }
54
 
55
  if ( anr_is_form_enabled( 'lost_password' ) ) {
@@ -65,7 +69,7 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
65
  add_filter( 'validate_password_reset', array( $this, 'reset_password_verify' ), 10, 2 );
66
  }
67
 
68
- if ( anr_is_form_enabled( 'comment' ) ) {
69
  if ( ! is_user_logged_in() ) {
70
  add_action( 'comment_form_after_fields', array( $this, 'form_field' ), 99 );
71
  } else {
@@ -533,6 +537,14 @@ if ( ! class_exists( 'anr_captcha_class' ) ) {
533
  }
534
 
535
  function ms_form_field_verify( $result ) {
 
 
 
 
 
 
 
 
536
  if ( ! $this->verify() ) {
537
  $result['errors']->add( 'anr_error', anr_get_option( 'error_message' ) );
538
  }
50
  if ( anr_is_form_enabled( 'ms_user_signup' ) && is_multisite() ) {
51
  add_action( 'signup_extra_fields', array( $this, 'ms_form_field' ), 99 );
52
  add_filter( 'wpmu_validate_user_signup', array( $this, 'ms_form_field_verify' ) );
53
+
54
+ add_action( 'signup_blogform', array( $this, 'ms_form_field' ), 99 );
55
+ add_filter( 'wpmu_validate_blog_signup', array( $this, 'ms_blog_verify' ) );
56
+
57
  }
58
 
59
  if ( anr_is_form_enabled( 'lost_password' ) ) {
69
  add_filter( 'validate_password_reset', array( $this, 'reset_password_verify' ), 10, 2 );
70
  }
71
 
72
+ if ( anr_is_form_enabled( 'comment' ) && ( ! is_admin() || ! current_user_can( 'moderate_comments' ) ) ) {
73
  if ( ! is_user_logged_in() ) {
74
  add_action( 'comment_form_after_fields', array( $this, 'form_field' ), 99 );
75
  } else {
537
  }
538
 
539
  function ms_form_field_verify( $result ) {
540
+ if ( isset( $_POST['stage'] ) && 'validate-user-signup' === $_POST['stage'] && ! $this->verify() ) {
541
+ $result['errors']->add( 'anr_error', anr_get_option( 'error_message' ) );
542
+ }
543
+
544
+ return $result;
545
+ }
546
+
547
+ function ms_blog_verify( $result ) {
548
  if ( ! $this->verify() ) {
549
  $result['errors']->add( 'anr_error', anr_get_option( 'error_message' ) );
550
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: recaptcha,nocaptcha,invisible,no captcha,bot,spam,captcha,woocommerce capt
4
  Donate link: https://www.shamimsplugins.com/products/advanced-nocaptcha-and-invisible-captcha-pro/
5
  Requires at least: 4.4
6
  Tested up to: 5.2
7
- Stable tag: 5.4
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,11 @@ You can access your file via FTP or file manager and rename "advanced-nocaptcha-
88
 
89
  == Changelog ==
90
 
 
 
 
 
 
91
  = 5.4 =
92
 
93
  * Use js for loop instead of php for loop
4
  Donate link: https://www.shamimsplugins.com/products/advanced-nocaptcha-and-invisible-captcha-pro/
5
  Requires at least: 4.4
6
  Tested up to: 5.2
7
+ Stable tag: 5.5
8
  Requires PHP: 5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
88
 
89
  == Changelog ==
90
 
91
+ = 5.5 =
92
+
93
+ * Fix: Multisite site signup during registration failed due to double verification.
94
+ * Fix: Comment reply failed from back-end.
95
+
96
  = 5.4 =
97
 
98
  * Use js for loop instead of php for loop