Version Description
- 22.11.2019 =
- Bugfix : Minor bugs have been fixed.
- Update : BWS menu has been updated.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Google Captcha (reCAPTCHA) by BestWebSoft |
Version | 1.54 |
Comparing to | |
See all releases |
Code changes from version 1.53 to 1.54
- bws_menu/bws_menu.php +2 -2
- bws_menu/product_list.php +3 -3
- google-captcha.php +13 -7
- includes/class-gglcptch-settings-tabs.php +2 -0
- readme.txt +10 -2
- screenshot-7.png +0 -0
bws_menu/bws_menu.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Function for displaying BestWebSoft menu
|
4 |
-
* Version: 2.2.
|
5 |
*/
|
6 |
|
7 |
if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
|
@@ -577,7 +577,7 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
577 |
<?php } elseif ( $is_installed ) { ?>
|
578 |
<a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $key_plugin ), 'bws_activate_plugin' . $key_plugin ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
|
579 |
<?php } else {
|
580 |
-
$install_url = isset( $value_plugin['install_url'] ) ? $value_plugin['install_url'] : self_admin_url( 'plugin-install.php?tab=search&type=term&s=' . str_replace( ' ', '+', str_replace( '-', '', $value_plugin['name'] ) ) . '+BestWebSoft&plugin-search-input=Search+Plugins' ); ?>
|
581 |
<a class="button button-secondary" href="<?php echo esc_url( $install_url ); ?>" title="<?php _e( 'Install this plugin', 'bestwebsoft' ); ?>" target="_blank"><?php _e( 'Install Now', 'bestwebsoft' ); ?></a>
|
582 |
<?php }
|
583 |
} ?>
|
1 |
<?php
|
2 |
/*
|
3 |
* Function for displaying BestWebSoft menu
|
4 |
+
* Version: 2.2.3
|
5 |
*/
|
6 |
|
7 |
if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
|
577 |
<?php } elseif ( $is_installed ) { ?>
|
578 |
<a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $key_plugin ), 'bws_activate_plugin' . $key_plugin ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
|
579 |
<?php } else {
|
580 |
+
$install_url = isset( $value_plugin['install_url'] ) ? $value_plugin['install_url'] : self_admin_url( 'plugin-install.php?tab=search&type=term&s=' . str_replace( ' ', '+', str_replace( '-', ' ', $value_plugin['name'] ) ) . '+BestWebSoft&plugin-search-input=Search+Plugins' ); ?>
|
581 |
<a class="button button-secondary" href="<?php echo esc_url( $install_url ); ?>" title="<?php _e( 'Install this plugin', 'bestwebsoft' ); ?>" target="_blank"><?php _e( 'Install Now', 'bestwebsoft' ); ?></a>
|
582 |
<?php }
|
583 |
} ?>
|
bws_menu/product_list.php
CHANGED
@@ -83,10 +83,10 @@ $bws_plugins = array(
|
|
83 |
'name' => 'Custom Admin Page',
|
84 |
'description' => __( 'Add unlimited custom pages to WordPress admin dashboard.', 'bestwebsoft' ),
|
85 |
'link' => 'https://bestwebsoft.com/products/wordpress/plugins/custom-admin-page/?k=9ac03f16c25e845e8e055a221c3e1467&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
|
86 |
-
'settings' => '
|
87 |
'pro_version' => 'custom-admin-page-pro/custom-admin-page-pro.php',
|
88 |
'purchase' => 'https://bestwebsoft.com/products/wordpress/plugins/custom-admin-page/buy/?k=b986f456dba092b537f1a7755a363be9&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
|
89 |
-
'pro_settings' => '
|
90 |
),
|
91 |
'custom-search-plugin/custom-search-plugin.php' => array(
|
92 |
'category' => array( 'navigation' ),
|
@@ -501,4 +501,4 @@ $themes = array(
|
|
501 |
'slug' => 'unity',
|
502 |
'href' => 'https://bestwebsoft.com/products/wordpress/themes/unity-multipurpose-wordpress-theme/'
|
503 |
)
|
504 |
-
);
|
83 |
'name' => 'Custom Admin Page',
|
84 |
'description' => __( 'Add unlimited custom pages to WordPress admin dashboard.', 'bestwebsoft' ),
|
85 |
'link' => 'https://bestwebsoft.com/products/wordpress/plugins/custom-admin-page/?k=9ac03f16c25e845e8e055a221c3e1467&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
|
86 |
+
'settings' => 'edit.php?post_type=bws-admin_page&page=custom-admin-page.php',
|
87 |
'pro_version' => 'custom-admin-page-pro/custom-admin-page-pro.php',
|
88 |
'purchase' => 'https://bestwebsoft.com/products/wordpress/plugins/custom-admin-page/buy/?k=b986f456dba092b537f1a7755a363be9&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
|
89 |
+
'pro_settings' => 'edit.php?post_type=bws-admin_page&page=custom-admin-page.php'
|
90 |
),
|
91 |
'custom-search-plugin/custom-search-plugin.php' => array(
|
92 |
'category' => array( 'navigation' ),
|
501 |
'slug' => 'unity',
|
502 |
'href' => 'https://bestwebsoft.com/products/wordpress/themes/unity-multipurpose-wordpress-theme/'
|
503 |
)
|
504 |
+
);
|
google-captcha.php
CHANGED
@@ -6,7 +6,7 @@ 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 |
*/
|
@@ -529,13 +529,19 @@ if ( ! function_exists( 'gglcptch_is_hidden_for_role' ) ) {
|
|
529 |
function gglcptch_is_hidden_for_role() {
|
530 |
global $current_user, $gglcptch_options;
|
531 |
|
532 |
-
|
|
|
|
|
533 |
|
534 |
-
if ( ! empty( $current_user->roles ) ) {
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
|
|
|
|
|
|
|
|
539 |
}
|
540 |
}
|
541 |
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: google-captcha
|
8 |
Domain Path: /languages
|
9 |
+
Version: 1.54
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv3 or later
|
12 |
*/
|
529 |
function gglcptch_is_hidden_for_role() {
|
530 |
global $current_user, $gglcptch_options;
|
531 |
|
532 |
+
if ( ! is_user_logged_in() ) {
|
533 |
+
return false;
|
534 |
+
}
|
535 |
|
536 |
+
if ( ! empty( $current_user->roles[0] ) ) {
|
537 |
+
$role = $current_user->roles[0];
|
538 |
+
if ( empty( $gglcptch_options ) ) {
|
539 |
+
register_gglcptch_settings();
|
540 |
+
}
|
541 |
+
return ! empty( $gglcptch_options[ $role ] );
|
542 |
+
} else {
|
543 |
+
return false;
|
544 |
+
}
|
545 |
}
|
546 |
}
|
547 |
|
includes/class-gglcptch-settings-tabs.php
CHANGED
@@ -89,6 +89,8 @@ if ( ! class_exists( 'Gglcptch_Settings_Tabs' ) ) {
|
|
89 |
*/
|
90 |
public function save_options() {
|
91 |
|
|
|
|
|
92 |
/* Save data for settings page */
|
93 |
if ( empty( $_POST['gglcptch_public_key'] ) ) {
|
94 |
$this->keys['public']['error_msg'] = __( 'Enter site key', 'google-captcha' );
|
89 |
*/
|
90 |
public function save_options() {
|
91 |
|
92 |
+
$message = $notice = $error = '';
|
93 |
+
|
94 |
/* Save data for settings page */
|
95 |
if ( empty( $_POST['gglcptch_public_key'] ) ) {
|
96 |
$this->keys['public']['error_msg'] = __( 'Enter site key', 'google-captcha' );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: bestwebsoft
|
|
3 |
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: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -266,6 +266,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
266 |
|
267 |
== Changelog ==
|
268 |
|
|
|
|
|
|
|
|
|
269 |
= V1.53 - 01.11.2019 =
|
270 |
* Pro : The compatibility with Divi theme and Divi builder has been improved.
|
271 |
* Pro : The bug with the reCAPTCHA verification on the Buddypress comment form has been fixed.
|
@@ -495,6 +499,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
495 |
|
496 |
== Upgrade Notice ==
|
497 |
|
|
|
|
|
|
|
|
|
498 |
= V1.53 =
|
499 |
* Functionality improved.
|
500 |
* Bugs fixed.
|
3 |
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: 4.0
|
6 |
+
Tested up to: 5.3
|
7 |
+
Stable tag: 1.54
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
266 |
|
267 |
== Changelog ==
|
268 |
|
269 |
+
= V1.54 - 22.11.2019 =
|
270 |
+
* Bugfix : Minor bugs have been fixed.
|
271 |
+
* Update : BWS menu has been updated.
|
272 |
+
|
273 |
= V1.53 - 01.11.2019 =
|
274 |
* Pro : The compatibility with Divi theme and Divi builder has been improved.
|
275 |
* Pro : The bug with the reCAPTCHA verification on the Buddypress comment form has been fixed.
|
499 |
|
500 |
== Upgrade Notice ==
|
501 |
|
502 |
+
= V1.54 =
|
503 |
+
* Bugs fixed.
|
504 |
+
* Functionality improved.
|
505 |
+
|
506 |
= V1.53 =
|
507 |
* Functionality improved.
|
508 |
* Bugs fixed.
|
screenshot-7.png
CHANGED
Binary file
|