Version Description
- Bugfix: Fatal error on websites running on PHP 5
Download this release
Release Info
Developer | Minor |
Plugin | Simple Google reCAPTCHA |
Version | 2.6 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.6
- readme.txt +4 -1
- simple-google-recaptcha.php +3 -3
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Minor
|
|
3 |
Tags: recaptcha, spam, block, captcha, bots, brute, force, protect, comments, secure, attack, registration, reset, form, buddypress, woocommerce, google
|
4 |
Requires at least: 4.2.0
|
5 |
Tested up to: 4.8.1
|
6 |
-
Stable tag: 2.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate link: https://www.paypal.me/NovaMi
|
@@ -47,6 +47,9 @@ Just use standard Plugin overview page in WordPress admin section and deactivate
|
|
47 |
5. Simple Google reCAPTCHA - Settings
|
48 |
|
49 |
== Changelog ==
|
|
|
|
|
|
|
50 |
= 2.5 =
|
51 |
* Warning: Removed javascript function which disabling/enabling submit button If reCAPTCHA was passed, because of incompatibility with some websites in specific cases
|
52 |
* Bugfix: WooCommerce - If you have activated login and register form on one page, reCAPTCHA verification is require too for register
|
3 |
Tags: recaptcha, spam, block, captcha, bots, brute, force, protect, comments, secure, attack, registration, reset, form, buddypress, woocommerce, google
|
4 |
Requires at least: 4.2.0
|
5 |
Tested up to: 4.8.1
|
6 |
+
Stable tag: 2.6
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate link: https://www.paypal.me/NovaMi
|
47 |
5. Simple Google reCAPTCHA - Settings
|
48 |
|
49 |
== Changelog ==
|
50 |
+
= 2.6 =
|
51 |
+
* Bugfix: Fatal error on websites running on PHP 5
|
52 |
+
|
53 |
= 2.5 =
|
54 |
* Warning: Removed javascript function which disabling/enabling submit button If reCAPTCHA was passed, because of incompatibility with some websites in specific cases
|
55 |
* Bugfix: WooCommerce - If you have activated login and register form on one page, reCAPTCHA verification is require too for register
|
simple-google-recaptcha.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: Simple Google reCAPTCHA
|
4 |
* Description: Simply protect your WordPress against spam comments and brute-force attacks, thanks to Google reCAPTCHA!
|
5 |
-
* Version: 2.
|
6 |
* Author: Michal Novák
|
7 |
* Author URI: https://www.novami.cz
|
8 |
* License: GPL3
|
@@ -16,7 +16,7 @@ function sgr_add_plugin_action_links($links) {
|
|
16 |
add_filter("plugin_action_links_".plugin_basename(__FILE__), "sgr_add_plugin_action_links");
|
17 |
|
18 |
function sgr_activation($plugin) {
|
19 |
-
if ($plugin == plugin_basename(__FILE__) && (
|
20 |
exit(wp_redirect(admin_url("options-general.php?page=sgr-options")));
|
21 |
}
|
22 |
}
|
@@ -114,7 +114,7 @@ function sgr_verify($input) {
|
|
114 |
}
|
115 |
|
116 |
function sgr_check() {
|
117 |
-
if (
|
118 |
|
119 |
add_action("login_enqueue_scripts", "frontend_sgr_script");
|
120 |
add_action("wp_enqueue_scripts", "frontend_sgr_script");
|
2 |
/*
|
3 |
* Plugin Name: Simple Google reCAPTCHA
|
4 |
* Description: Simply protect your WordPress against spam comments and brute-force attacks, thanks to Google reCAPTCHA!
|
5 |
+
* Version: 2.6
|
6 |
* Author: Michal Novák
|
7 |
* Author URI: https://www.novami.cz
|
8 |
* License: GPL3
|
16 |
add_filter("plugin_action_links_".plugin_basename(__FILE__), "sgr_add_plugin_action_links");
|
17 |
|
18 |
function sgr_activation($plugin) {
|
19 |
+
if ($plugin == plugin_basename(__FILE__) && (get_option("sgr_site_key") == "" || get_option("sgr_secret_key") == "")) {
|
20 |
exit(wp_redirect(admin_url("options-general.php?page=sgr-options")));
|
21 |
}
|
22 |
}
|
114 |
}
|
115 |
|
116 |
function sgr_check() {
|
117 |
+
if (get_option("sgr_site_key") != "" && get_option("sgr_secret_key") != "") {
|
118 |
|
119 |
add_action("login_enqueue_scripts", "frontend_sgr_script");
|
120 |
add_action("wp_enqueue_scripts", "frontend_sgr_script");
|