Version Description
- Fix: Settings page checkbox uncheck was not working.
Download this release
Release Info
Developer | shamim51 |
Plugin | Advanced noCaptcha & invisible Captcha |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.7
- admin/anr-admin-class.php +8 -2
- advanced-nocaptcha-recaptcha.php +1 -1
- readme.txt +10 -47
admin/anr-admin-class.php
CHANGED
@@ -253,6 +253,8 @@ function anr_admin_sidebar()
|
|
253 |
|
254 |
if ( !wp_verify_nonce($options['token'], 'anr-admin-settings'))
|
255 |
$errors->add('invalidToken', __('Sorry, your nonce did not verify!', 'advanced-nocaptcha-recaptcha'));
|
|
|
|
|
256 |
|
257 |
$options['site_key'] = isset( $options['site_key'] ) ? sanitize_text_field( $options['site_key'] ) : '';
|
258 |
$options['secret_key'] = isset( $options['secret_key'] ) ? sanitize_text_field( $options['secret_key'] ) : '';
|
@@ -261,8 +263,12 @@ function anr_admin_sidebar()
|
|
261 |
$options = apply_filters('anr_filter_admin_setting_before_save', $options, $errors);
|
262 |
//var_dump($options);
|
263 |
|
264 |
-
if (count($errors->get_error_codes())==0){
|
265 |
-
|
|
|
|
|
|
|
|
|
266 |
}
|
267 |
return $errors;
|
268 |
}
|
253 |
|
254 |
if ( !wp_verify_nonce($options['token'], 'anr-admin-settings'))
|
255 |
$errors->add('invalidToken', __('Sorry, your nonce did not verify!', 'advanced-nocaptcha-recaptcha'));
|
256 |
+
|
257 |
+
unset( $options['token'], $options['anr-admin-settings-submit'] );
|
258 |
|
259 |
$options['site_key'] = isset( $options['site_key'] ) ? sanitize_text_field( $options['site_key'] ) : '';
|
260 |
$options['secret_key'] = isset( $options['secret_key'] ) ? sanitize_text_field( $options['secret_key'] ) : '';
|
263 |
$options = apply_filters('anr_filter_admin_setting_before_save', $options, $errors);
|
264 |
//var_dump($options);
|
265 |
|
266 |
+
if ( count( $errors->get_error_codes() ) == 0 ){
|
267 |
+
if ( is_multisite() && apply_filters( 'anr_same_settings_for_all_sites', false ) ){
|
268 |
+
update_site_option( 'anr_admin_options', $options );
|
269 |
+
} else {
|
270 |
+
update_option( 'anr_admin_options', $options );
|
271 |
+
}
|
272 |
}
|
273 |
return $errors;
|
274 |
}
|
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 (after Comment textarea before submit button), bbPress, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
-
Version: 2.
|
7 |
Author: Shamim
|
8 |
Author URI: https://www.shamimsplugins.com/contact-us/
|
9 |
Text Domain: advanced-nocaptcha-recaptcha
|
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 (after Comment textarea before submit button), bbPress, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
+
Version: 2.7
|
7 |
Author: Shamim
|
8 |
Author URI: https://www.shamimsplugins.com/contact-us/
|
9 |
Text Domain: advanced-nocaptcha-recaptcha
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: shamim51
|
|
3 |
Tags: recaptcha,nocaptcha,invisible,no captcha,bot,spam,captcha,woocommerce captcha,woocommerce nocaptcha, woocommerce,widget,plugin,sidebar,shortcode,page,posts,comments,google,bbpress,multisite,multiple
|
4 |
Donate link: https://www.paypal.me/hasanshamim
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 2.
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -81,6 +81,10 @@ To show noCaptcha use [anr_nocaptcha g-recaptcha-response]
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= 2.6 =
|
85 |
|
86 |
* New: Show captcha after set failed login attempts (may not work if you use ajax based login form, fall back to show always).
|
@@ -134,52 +138,11 @@ To show noCaptcha use [anr_nocaptcha g-recaptcha-response]
|
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
|
|
|
|
|
|
|
|
137 |
= 2.6 =
|
138 |
|
139 |
* New: Show captcha after set failed login attempts (may not work if you use ajax based login form, fall back to show always).
|
140 |
* Fix: contact form 7 deprecated function use.
|
141 |
-
|
142 |
-
= 2.5 =
|
143 |
-
|
144 |
-
* New: Invisible captcha feature added.
|
145 |
-
* Fix: Show captcha error when login form loaded
|
146 |
-
|
147 |
-
= 2.4 =
|
148 |
-
|
149 |
-
* Bug fix: WooCommerce lostpassword corrupted link
|
150 |
-
|
151 |
-
= 2.3 =
|
152 |
-
|
153 |
-
* Comment form captcha issue fixed.
|
154 |
-
* Captcha now wraped in anr_captcha_field div class.
|
155 |
-
* Comment form captcha p tag removed.
|
156 |
-
|
157 |
-
= 2.2 =
|
158 |
-
|
159 |
-
* Security update.
|
160 |
-
* WooCommerce checkout form issue fixed.
|
161 |
-
|
162 |
-
= 2.1 =
|
163 |
-
|
164 |
-
* Captcha in WooCommerce added (WooCommerce Login, Registration, Lost password, Reset password forms).
|
165 |
-
* Allow multiple captcha in same page.
|
166 |
-
* Text domain changed.
|
167 |
-
* Some minor bug fixed.
|
168 |
-
|
169 |
-
= 1.3 =
|
170 |
-
|
171 |
-
* New filter 'anr_same_settings_for_all_sites' added, Now same settings can be used for all sites in Multisite.
|
172 |
-
* Multisite User Signup Form added.
|
173 |
-
* Some bug fix.
|
174 |
-
|
175 |
-
= 1.2 =
|
176 |
-
|
177 |
-
* Now captcha size can be changed.
|
178 |
-
* bbPress New topic added
|
179 |
-
* bbPress reply to topic added
|
180 |
-
* XMLRPC_REQUEST Check
|
181 |
-
* Some bug fix.
|
182 |
-
|
183 |
-
= 1.1 =
|
184 |
-
|
185 |
-
* Initial release.
|
3 |
Tags: recaptcha,nocaptcha,invisible,no captcha,bot,spam,captcha,woocommerce captcha,woocommerce nocaptcha, woocommerce,widget,plugin,sidebar,shortcode,page,posts,comments,google,bbpress,multisite,multiple
|
4 |
Donate link: https://www.paypal.me/hasanshamim
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 4.9.7
|
7 |
+
Stable tag: 2.7
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 2.7 =
|
85 |
+
|
86 |
+
* Fix: Settings page checkbox uncheck was not working.
|
87 |
+
|
88 |
= 2.6 =
|
89 |
|
90 |
* New: Show captcha after set failed login attempts (may not work if you use ajax based login form, fall back to show always).
|
138 |
|
139 |
== Upgrade Notice ==
|
140 |
|
141 |
+
= 2.7 =
|
142 |
+
|
143 |
+
* Fix: Settings page checkbox uncheck was not working.
|
144 |
+
|
145 |
= 2.6 =
|
146 |
|
147 |
* New: Show captcha after set failed login attempts (may not work if you use ajax based login form, fall back to show always).
|
148 |
* Fix: contact form 7 deprecated function use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|