Version Description
- Bugfix: Loading of Google reCAPTCHA form failed in some rare cases
Download this release
Release Info
Developer | Minor |
Plugin | Simple Google reCAPTCHA |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.7
- 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.6 =
|
51 |
* Bugfix: Fatal error on websites running on PHP 5
|
52 |
|
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
|
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.7 =
|
51 |
+
* Bugfix: Loading of Google reCAPTCHA form failed in some rare cases
|
52 |
+
|
53 |
= 2.6 =
|
54 |
* Bugfix: Fatal error on websites running on PHP 5
|
55 |
|
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
|
@@ -68,11 +68,11 @@ add_action("plugins_loaded", "load_language_sgr");
|
|
68 |
|
69 |
function frontend_sgr_script() {
|
70 |
if (did_action("login_init") > 0 || function_exists("is_account_page") || function_exists("bp_get_signup_page") || (is_singular() && comments_open()) && !is_user_logged_in()) {
|
71 |
-
wp_register_script("sgr_recaptcha", "https://www.google.com/recaptcha/api.js?hl=".get_locale()."&onload=sgr&render=explicit");
|
72 |
-
wp_enqueue_script("sgr_recaptcha");
|
73 |
wp_register_script("sgr_recaptcha_main", plugin_dir_url(__FILE__)."main.js");
|
74 |
wp_enqueue_script("sgr_recaptcha_main");
|
75 |
wp_localize_script("sgr_recaptcha_main", "sgr_recaptcha", array("site_key" => get_option("sgr_site_key")));
|
|
|
|
|
76 |
wp_enqueue_style("style", plugin_dir_url(__FILE__)."style.css");
|
77 |
|
78 |
add_action("comment_form_after_fields", "sgr_display");
|
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.7
|
6 |
* Author: Michal Novák
|
7 |
* Author URI: https://www.novami.cz
|
8 |
* License: GPL3
|
68 |
|
69 |
function frontend_sgr_script() {
|
70 |
if (did_action("login_init") > 0 || function_exists("is_account_page") || function_exists("bp_get_signup_page") || (is_singular() && comments_open()) && !is_user_logged_in()) {
|
|
|
|
|
71 |
wp_register_script("sgr_recaptcha_main", plugin_dir_url(__FILE__)."main.js");
|
72 |
wp_enqueue_script("sgr_recaptcha_main");
|
73 |
wp_localize_script("sgr_recaptcha_main", "sgr_recaptcha", array("site_key" => get_option("sgr_site_key")));
|
74 |
+
wp_register_script("sgr_recaptcha", "https://www.google.com/recaptcha/api.js?hl=".get_locale()."&onload=sgr&render=explicit");
|
75 |
+
wp_enqueue_script("sgr_recaptcha");
|
76 |
wp_enqueue_style("style", plugin_dir_url(__FILE__)."style.css");
|
77 |
|
78 |
add_action("comment_form_after_fields", "sgr_display");
|