Version Description
- Fix: Was not possible to uncheck lockout setting.
- Fix: Potential JS error when 'Disable Submit Buttons' was enabled.
Download this release
Release Info
Developer | podpirate |
Plugin | WordPress ReCaptcha Integration |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- inc/class-wp_recaptcha_options.php +1 -37
- readme.txt +5 -1
- wp-recaptcha-integration.php +2 -2
inc/class-wp_recaptcha_options.php
CHANGED
@@ -233,49 +233,13 @@ class WP_reCaptcha_Options {
|
|
233 |
register_setting( 'recaptcha_options', 'recaptcha_enable_signup', 'intval' );
|
234 |
register_setting( 'recaptcha_options', 'recaptcha_enable_login' , 'intval');
|
235 |
register_setting( 'recaptcha_options', 'recaptcha_enable_lostpw' , 'intval');
|
|
|
236 |
|
237 |
if ( function_exists('WC') )
|
238 |
register_setting( 'recaptcha_options', 'recaptcha_enable_wc_order' , 'intval');
|
239 |
|
240 |
register_setting( 'recaptcha_options', 'recaptcha_disable_for_known_users' , 'intval');
|
241 |
|
242 |
-
/*
|
243 |
-
add_settings_field('recaptcha_enable_comments', __('Protect Comments','wp-recaptcha-integration'),
|
244 |
-
array(&$this,'input_check_onoff'), 'recaptcha', 'recaptcha_protection' ,
|
245 |
-
array('name'=>'recaptcha_enable_comments','label'=>__( 'Protect comment forms with recaptcha.' ,'wp-recaptcha-integration' ) )
|
246 |
-
);
|
247 |
-
|
248 |
-
add_settings_field('recaptcha_enable_signup', __('Protect Signup','wp-recaptcha-integration'),
|
249 |
-
array(&$this,'input_check_onoff'), 'recaptcha', 'recaptcha_protection',
|
250 |
-
array('name'=>'recaptcha_enable_signup','label'=>__( 'Protect signup form with recaptcha.','wp-recaptcha-integration' ) )
|
251 |
-
);
|
252 |
-
|
253 |
-
add_settings_field('recaptcha_enable_login', __('Protect Login','wp-recaptcha-integration'),
|
254 |
-
array(&$this,'input_check_onoff'), 'recaptcha', 'recaptcha_protection' ,
|
255 |
-
array('name'=>'recaptcha_enable_login','label'=>__( 'Protect Login form with recaptcha.','wp-recaptcha-integration' ))
|
256 |
-
);
|
257 |
-
|
258 |
-
add_settings_field('recaptcha_enable_lostpw', __('Protect Lost Password','wp-recaptcha-integration'),
|
259 |
-
array(&$this,'input_check_onoff'), 'recaptcha', 'recaptcha_protection' ,
|
260 |
-
array('name'=>'recaptcha_enable_lostpw','label'=>__( 'Protect Lost Password form with recaptcha.','wp-recaptcha-integration' ))
|
261 |
-
);
|
262 |
-
// woocommerce integration
|
263 |
-
if ( function_exists('WC') ) {
|
264 |
-
$wc_warn = WP_reCaptcha::instance()->get_option('recaptcha_enable_wc_order') && WP_reCaptcha::instance()->get_option('recaptcha_flavor') !== 'grecaptcha';
|
265 |
-
add_settings_field('recaptcha_enable_wc_order', __('Protect WooCommerce Checkout','wp-recaptcha-integration'),
|
266 |
-
array(&$this,'input_check_onoff'), 'recaptcha', 'recaptcha_protection' ,
|
267 |
-
array(
|
268 |
-
'name'=>'recaptcha_enable_wc_order',
|
269 |
-
'label'=>__( 'Protect wooCommerce Checkout with a recaptcha.','wp-recaptcha-integration' ),
|
270 |
-
'description' => __( 'This will only work with No Captcha flavor.','wp-recaptcha-integration' ),
|
271 |
-
'class' => $wc_warn ? 'warning dashicons-before dashicons-no' : '',
|
272 |
-
)
|
273 |
-
);
|
274 |
-
if ( $wc_warn ) {
|
275 |
-
add_settings_error('recaptcha',2,__( 'The Old Style recaptcha doesn‘t work together with the WooCommerce checkout form. The Captcha will not be displayed,' ,'wp-recaptcha-integration' ) );
|
276 |
-
}
|
277 |
-
}
|
278 |
-
/*/
|
279 |
$protect_settings = array();
|
280 |
$protect_settings[] = array(
|
281 |
'name' => 'recaptcha_enable_comments',
|
233 |
register_setting( 'recaptcha_options', 'recaptcha_enable_signup', 'intval' );
|
234 |
register_setting( 'recaptcha_options', 'recaptcha_enable_login' , 'intval');
|
235 |
register_setting( 'recaptcha_options', 'recaptcha_enable_lostpw' , 'intval');
|
236 |
+
register_setting( 'recaptcha_options', 'recaptcha_lockout' , 'intval');
|
237 |
|
238 |
if ( function_exists('WC') )
|
239 |
register_setting( 'recaptcha_options', 'recaptcha_enable_wc_order' , 'intval');
|
240 |
|
241 |
register_setting( 'recaptcha_options', 'recaptcha_disable_for_known_users' , 'intval');
|
242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
$protect_settings = array();
|
244 |
$protect_settings[] = array(
|
245 |
'name' => 'recaptcha_enable_comments',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: security, captcha, recaptcha, no captcha, login, signup, contact form 7, ninja forms, woocommerce
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -243,6 +243,10 @@ I will migrate all the translation stuff there.
|
|
243 |
|
244 |
== Changelog ==
|
245 |
|
|
|
|
|
|
|
|
|
246 |
= 1.1.1 =
|
247 |
- Filter: `wp_recaptcha_do_scripts` allow disabling recaptcha scripts on certain pages.
|
248 |
- Filter: `wp_recaptcha_print_login_css`, allow disabling login CSS.
|
4 |
Tags: security, captcha, recaptcha, no captcha, login, signup, contact form 7, ninja forms, woocommerce
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 1.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
243 |
|
244 |
== Changelog ==
|
245 |
|
246 |
+
= 1.1.2 =
|
247 |
+
- Fix: Was not possible to uncheck lockout setting.
|
248 |
+
- Fix: Potential JS error when 'Disable Submit Buttons' was enabled.
|
249 |
+
|
250 |
= 1.1.1 =
|
251 |
- Filter: `wp_recaptcha_do_scripts` allow disabling recaptcha scripts on certain pages.
|
252 |
- Filter: `wp_recaptcha_print_login_css`, allow disabling login CSS.
|
wp-recaptcha-integration.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP reCaptcha Integration
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-recaptcha-integration/
|
5 |
Description: Integrate reCaptcha in your blog. Supports no Captcha (new style recaptcha) as well as the old style reCaptcha. Provides of the box integration for signup, login, comment forms, lost password, Ninja Forms and contact form 7.
|
6 |
-
Version: 1.1.
|
7 |
Author: Jörn Lund
|
8 |
Author URI: https://github.com/mcguffin/
|
9 |
*/
|
@@ -276,7 +276,7 @@ class WP_reCaptcha {
|
|
276 |
this.form=false;
|
277 |
|
278 |
this.setEnabled=function(e){
|
279 |
-
for ( var s
|
280 |
if (e) self.submits[s].removeAttribute('disabled');
|
281 |
else self.submits[s].setAttribute('disabled','disabled');
|
282 |
}
|
3 |
Plugin Name: WP reCaptcha Integration
|
4 |
Plugin URI: https://wordpress.org/plugins/wp-recaptcha-integration/
|
5 |
Description: Integrate reCaptcha in your blog. Supports no Captcha (new style recaptcha) as well as the old style reCaptcha. Provides of the box integration for signup, login, comment forms, lost password, Ninja Forms and contact form 7.
|
6 |
+
Version: 1.1.2
|
7 |
Author: Jörn Lund
|
8 |
Author URI: https://github.com/mcguffin/
|
9 |
*/
|
276 |
this.form=false;
|
277 |
|
278 |
this.setEnabled=function(e){
|
279 |
+
for ( var s=0;s<self.submits.length;s++ ) {
|
280 |
if (e) self.submits[s].removeAttribute('disabled');
|
281 |
else self.submits[s].setAttribute('disabled','disabled');
|
282 |
}
|