Version Description
- 05.09.2022 =
- Update : BWS Panel changes.
- Pro: The compatibility with BuddyBoss has been added.
- Pro: The compatibility with LearnDash registration page has been added.
- Bugfix: Minor bugs fixed.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Google Captcha (reCAPTCHA) by BestWebSoft |
Version | 1.68 |
Comparing to | |
See all releases |
Code changes from version 1.67 to 1.68
- css/admin_page.css +3 -0
- google-captcha.php +10 -3
- includes/allowlist.php +1 -1
- includes/class-gglcptch-settings-tabs.php +32 -23
- readme.txt +14 -1
css/admin_page.css
CHANGED
@@ -41,4 +41,7 @@
|
|
41 |
100% {
|
42 |
transform: rotate(3000deg)
|
43 |
}
|
|
|
|
|
|
|
44 |
}
|
41 |
100% {
|
42 |
transform: rotate(3000deg)
|
43 |
}
|
44 |
+
}
|
45 |
+
.bws_info.warning {
|
46 |
+
color: red;
|
47 |
}
|
google-captcha.php
CHANGED
@@ -6,12 +6,12 @@ Description: Protect WordPress website forms from spam entries with Google Captc
|
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: google-captcha
|
8 |
Domain Path: /languages
|
9 |
-
Version: 1.
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv3 or later
|
12 |
*/
|
13 |
|
14 |
-
/* © Copyright
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -351,6 +351,13 @@ if ( ! function_exists( 'register_gglcptch_settings' ) ) {
|
|
351 |
function register_gglcptch_settings() {
|
352 |
global $wpdb, $gglcptch_options, $gglcptch_plugin_info;
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
$plugin_db_version = '0.2';
|
355 |
|
356 |
/* Install the option defaults */
|
@@ -1015,7 +1022,7 @@ if ( ! function_exists( 'gglcptch_get_message' ) ) {
|
|
1015 |
|
1016 |
$messages = array(
|
1017 |
/* custom error */
|
1018 |
-
'RECAPTCHA_EMPTY_RESPONSE' => __( '
|
1019 |
/* v2 error */
|
1020 |
'missing-input-secret' => __( 'Secret Key is missing.', 'google-captcha' ),
|
1021 |
'invalid-input-secret' => sprintf(
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: google-captcha
|
8 |
Domain Path: /languages
|
9 |
+
Version: 1.68
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv3 or later
|
12 |
*/
|
13 |
|
14 |
+
/* © Copyright 2022 BestWebSoft ( https://support.bestwebsoft.com )
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
351 |
function register_gglcptch_settings() {
|
352 |
global $wpdb, $gglcptch_options, $gglcptch_plugin_info;
|
353 |
|
354 |
+
if ( empty( $gglcptch_plugin_info ) ) {
|
355 |
+
if ( ! function_exists( 'get_plugin_data' ) ) {
|
356 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
357 |
+
}
|
358 |
+
$gglcptch_plugin_info = get_plugin_data( __FILE__ );
|
359 |
+
}
|
360 |
+
|
361 |
$plugin_db_version = '0.2';
|
362 |
|
363 |
/* Install the option defaults */
|
1022 |
|
1023 |
$messages = array(
|
1024 |
/* custom error */
|
1025 |
+
'RECAPTCHA_EMPTY_RESPONSE' => __( 'The reCaptcha verification failed. Please try again.', 'google-captcha' ),
|
1026 |
/* v2 error */
|
1027 |
'missing-input-secret' => __( 'Secret Key is missing.', 'google-captcha' ),
|
1028 |
'invalid-input-secret' => sprintf(
|
includes/allowlist.php
CHANGED
@@ -51,7 +51,7 @@ if ( ! class_exists( 'Gglcptch_Allowlist' ) ) {
|
|
51 |
<?php }
|
52 |
|
53 |
if ( isset( $_SERVER ) ) {
|
54 |
-
$sever_vars = array( '
|
55 |
foreach ( $sever_vars as $var ) {
|
56 |
if ( ! empty( $_SERVER[ $var ] ) ) {
|
57 |
if ( filter_var( $_SERVER[ $var ], FILTER_VALIDATE_IP ) ) {
|
51 |
<?php }
|
52 |
|
53 |
if ( isset( $_SERVER ) ) {
|
54 |
+
$sever_vars = array( 'REMOTE_ADDR', 'HTTP_X_REAL_IP', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR' );
|
55 |
foreach ( $sever_vars as $var ) {
|
56 |
if ( ! empty( $_SERVER[ $var ] ) ) {
|
57 |
if ( filter_var( $_SERVER[ $var ], FILTER_VALIDATE_IP ) ) {
|
includes/class-gglcptch-settings-tabs.php
CHANGED
@@ -149,29 +149,38 @@ if ( ! class_exists( 'Gglcptch_Settings_Tabs' ) ) {
|
|
149 |
<hr>
|
150 |
<div class="bws_tab_sub_label"><?php _e( 'General', 'google-captcha' ); ?></div>
|
151 |
<table class="form-table">
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
<?php foreach ( $this->keys as $key => $fields ) { ?>
|
176 |
<tr>
|
177 |
<th><?php echo $fields['display_name']; ?></th>
|
149 |
<hr>
|
150 |
<div class="bws_tab_sub_label"><?php _e( 'General', 'google-captcha' ); ?></div>
|
151 |
<table class="form-table">
|
152 |
+
<tr valign="top">
|
153 |
+
<th scope="row"><?php _e( 'reCaptcha Version', 'google-captcha' ); ?></th>
|
154 |
+
<td>
|
155 |
+
<fieldset>
|
156 |
+
<?php foreach ( $this->versions as $version => $version_name ) { ?>
|
157 |
+
<label>
|
158 |
+
<input type="radio" name="gglcptch_recaptcha_version" value="<?php echo $version; ?>" <?php checked( $version, $this->options['recaptcha_version'] ); ?>> <?php echo $version_name; ?>
|
159 |
+
</label>
|
160 |
+
<br/>
|
161 |
+
<?php } ?>
|
162 |
+
</fieldset>
|
163 |
+
</td>
|
164 |
+
</tr>
|
165 |
+
</table>
|
166 |
+
<table class="form-table gglcptch_settings_form">
|
167 |
+
<div class="bws_info gglcptch_settings_form"><?php printf( __( 'Register your domain name with Google reCaptcha service and add the keys to the fields below. %s Get the API Keys. %s' , 'google-captcha' ),
|
168 |
+
'<a target="_blank" href="https://www.google.com/recaptcha/admin#list">',
|
169 |
+
'</a>' ) ?>
|
170 |
+
</div>
|
171 |
+
<div class="bws_info gglcptch_settings_form"><?php printf( __( 'If you do not want to create API keys use %1%sCaptcha by BestWebSoft%2$s plugin.', 'google-captcha' ),
|
172 |
+
'<a target="_blank" href="https://bestwebsoft.com/products/wordpress/plugins/captcha/?k=dcf21edcd5cc9374f5e15c8055e40797">',
|
173 |
+
'</a>' ); ?>
|
174 |
+
</div>
|
175 |
+
<div class="bws_info warning gglcptch_settings_form">
|
176 |
+
<?php
|
177 |
+
printf(
|
178 |
+
__( 'The Google reCaptcha block loads the webfont "Roboto" from fonts.googleapis.com. If you do not want to load this font use %1$sCaptcha by BestWebSoft%2$s plugin.', 'google-captcha-pro' ),
|
179 |
+
'<a target="_blank" href="https://bestwebsoft.com/products/wordpress/plugins/captcha/?k=dcf21edcd5cc9374f5e15c8055e40797">',
|
180 |
+
'</a>'
|
181 |
+
);
|
182 |
+
?>
|
183 |
+
</div>
|
184 |
<?php foreach ( $this->keys as $key => $fields ) { ?>
|
185 |
<tr>
|
186 |
<th><?php echo $fields['display_name']; ?></th>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://bestwebsoft.com/donate/
|
|
4 |
Tags: anti-spam security, antispam, recaptcha, captcha, captha, Invisible reCaptcha, Invisible captcha, Invisibl reCaptcha, comment, cpatcha, google catcha, Invisible re captcha, recaptcha version3
|
5 |
Requires at least: 5.6
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -65,6 +65,8 @@ http://www.youtube.com/watch?v=L2BziEOL3Fg
|
|
65 |
> * WPForms
|
66 |
> * Caldera Forms
|
67 |
> * Elementor Pro Contact Forms
|
|
|
|
|
68 |
> * Compatible with WooCommerce:
|
69 |
> * Login form
|
70 |
> * Register form
|
@@ -276,6 +278,12 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
276 |
|
277 |
== Changelog ==
|
278 |
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
= V1.67 - 20.04.2022 =
|
280 |
* Update : BWS Panel changes.
|
281 |
* Pro: Divi Child Theme fixes.
|
@@ -587,6 +595,11 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
587 |
|
588 |
== Upgrade Notice ==
|
589 |
|
|
|
|
|
|
|
|
|
|
|
590 |
= V1.67 =
|
591 |
* Bugs fixed.
|
592 |
|
4 |
Tags: anti-spam security, antispam, recaptcha, captcha, captha, Invisible reCaptcha, Invisible captcha, Invisibl reCaptcha, comment, cpatcha, google catcha, Invisible re captcha, recaptcha version3
|
5 |
Requires at least: 5.6
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 1.68
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
65 |
> * WPForms
|
66 |
> * Caldera Forms
|
67 |
> * Elementor Pro Contact Forms
|
68 |
+
> * LearnDash Registration Page
|
69 |
+
> * BuddyBoss
|
70 |
> * Compatible with WooCommerce:
|
71 |
> * Login form
|
72 |
> * Register form
|
278 |
|
279 |
== Changelog ==
|
280 |
|
281 |
+
= V1.68 - 05.09.2022 =
|
282 |
+
* Update : BWS Panel changes.
|
283 |
+
* Pro: The compatibility with BuddyBoss has been added.
|
284 |
+
* Pro: The compatibility with LearnDash registration page has been added.
|
285 |
+
* Bugfix: Minor bugs fixed.
|
286 |
+
|
287 |
= V1.67 - 20.04.2022 =
|
288 |
* Update : BWS Panel changes.
|
289 |
* Pro: Divi Child Theme fixes.
|
595 |
|
596 |
== Upgrade Notice ==
|
597 |
|
598 |
+
= V1.68 =
|
599 |
+
* Plugin optimization completed.
|
600 |
+
* New features added.
|
601 |
+
* Bugs fixed.
|
602 |
+
|
603 |
= V1.67 =
|
604 |
* Bugs fixed.
|
605 |
|