Version Description
(2020-08-26) = * Updated external scripts enqueue method based on user feedback.
Download this release
Release Info
Developer | IQComputing |
Plugin | Contact Form 7 – reCaptcha v2 |
Version | 1.2.9 |
Comparing to | |
See all releases |
Code changes from version 1.2.8 to 1.2.9
- changelog.txt +12 -0
- readme.txt +5 -5
- recaptcha-v2.php +2 -20
- wpcf7-recaptcha.php +2 -2
changelog.txt
CHANGED
@@ -2,6 +2,18 @@
|
|
2 |
|
3 |
This is to keep track of all changes the plugin undertakes. The readme.txt should only contain the most recent 3.
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
= 1.2.8 =
|
6 |
|
7 |
Release Date: August 19, 2020
|
2 |
|
3 |
This is to keep track of all changes the plugin undertakes. The readme.txt should only contain the most recent 3.
|
4 |
|
5 |
+
= 1.2.9 =
|
6 |
+
|
7 |
+
Release Date: August 26, 2020
|
8 |
+
|
9 |
+
* Overview
|
10 |
+
* Some users reported issues with reCaptcha displaying, likely based on enqueue method
|
11 |
+
|
12 |
+
* Code Changes
|
13 |
+
* Removed `iqfix_wpcf7_recaptcha_callback_script()` function
|
14 |
+
* Enqueued reCaptcha controls based on whether google reCaptcha is enqueued.
|
15 |
+
* See recaptcha-v2.php LN 72
|
16 |
+
|
17 |
= 1.2.8 =
|
18 |
|
19 |
Release Date: August 19, 2020
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: iqcomputing
|
|
3 |
Tags: contact-form-7, contact-form-7-recaptcha, recaptcha, spam
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -60,6 +60,9 @@ Should the above be correct, at this point it's time to open a support thread fo
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
63 |
= 1.2.8 (2020-08-19) =
|
64 |
* Updated supported version to 5.5.
|
65 |
* Fixed JS issue in which response was not looking for correct element ( Thanks @fuadyp ).
|
@@ -67,7 +70,4 @@ Should the above be correct, at this point it's time to open a support thread fo
|
|
67 |
* Removed instance of "whitelist".
|
68 |
|
69 |
= 1.2.7 (2020-06-15) =
|
70 |
-
* Rearranged the plugin method calls so that inclusion of files is last.
|
71 |
-
|
72 |
-
= 1.2.6 (2020-04-22) =
|
73 |
-
* Updated reCpatcha Javascript to use the passed event to find the given form.
|
3 |
Tags: contact-form-7, contact-form-7-recaptcha, recaptcha, spam
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 1.2.9
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 1.2.9 (2020-08-26) =
|
64 |
+
* Updated external scripts enqueue method based on user feedback.
|
65 |
+
|
66 |
= 1.2.8 (2020-08-19) =
|
67 |
* Updated supported version to 5.5.
|
68 |
* Fixed JS issue in which response was not looking for correct element ( Thanks @fuadyp ).
|
70 |
* Removed instance of "whitelist".
|
71 |
|
72 |
= 1.2.7 (2020-06-15) =
|
73 |
+
* Rearranged the plugin method calls so that inclusion of files is last.
|
|
|
|
|
|
recaptcha-v2.php
CHANGED
@@ -25,7 +25,6 @@ function iqfix_wpcf7_manage_hooks() {
|
|
25 |
|
26 |
// reCaptcha Footer Javascript
|
27 |
remove_action( 'wp_footer', 'wpcf7_recaptcha_onload_script', 40 );
|
28 |
-
add_action( 'wp_footer', 'iqfix_wpcf7_recaptcha_callback_script', 2 );
|
29 |
|
30 |
}
|
31 |
add_action( 'setup_theme', 'iqfix_wpcf7_manage_hooks' );
|
@@ -70,12 +69,12 @@ function iqfix_wpcf7_recaptcha_enqueue_scripts() {
|
|
70 |
'render' => 'explicit',
|
71 |
), $url );
|
72 |
|
73 |
-
wp_register_script( '
|
|
|
74 |
wp_localize_script( 'google-recaptcha', 'wpcf7iqfix', array(
|
75 |
'recaptcha_empty' => esc_html__( 'Please verify that you are not a robot.', 'wpcf7-recaptcha' ),
|
76 |
'response_err' => esc_html__( 'wpcf7-recaptcha: Could not verify reCaptcha response.', 'wpcf7-recaptcha' ),
|
77 |
) );
|
78 |
-
wp_register_script( 'wpcf7-recaptcha-controls', plugins_url( 'assets/js/wpcf7-recaptcha-controls.js', __FILE__ ), array( 'google-recaptcha' ), '1.0', true );
|
79 |
|
80 |
}
|
81 |
// See `iqfix_wpcf7_manage_hooks` callback above
|
@@ -174,23 +173,6 @@ function iqfix_wpcf7_recaptcha_noscript( $args = '' ) {
|
|
174 |
}
|
175 |
|
176 |
|
177 |
-
/**
|
178 |
-
* reCaptcha Javascript
|
179 |
-
*
|
180 |
-
* @return void
|
181 |
-
*/
|
182 |
-
function iqfix_wpcf7_recaptcha_callback_script() {
|
183 |
-
|
184 |
-
if ( ! wp_script_is( 'google-recaptcha', 'enqueued' ) ) {
|
185 |
-
return;
|
186 |
-
}
|
187 |
-
|
188 |
-
wp_enqueue_script( 'wpcf7-recaptcha-controls' );
|
189 |
-
|
190 |
-
}
|
191 |
-
// See `iqfix_wpcf7_manage_hooks` callback above
|
192 |
-
|
193 |
-
|
194 |
/**
|
195 |
* Verify submission is legitimate, verify reCaptcha response
|
196 |
*
|
25 |
|
26 |
// reCaptcha Footer Javascript
|
27 |
remove_action( 'wp_footer', 'wpcf7_recaptcha_onload_script', 40 );
|
|
|
28 |
|
29 |
}
|
30 |
add_action( 'setup_theme', 'iqfix_wpcf7_manage_hooks' );
|
69 |
'render' => 'explicit',
|
70 |
), $url );
|
71 |
|
72 |
+
wp_register_script( 'wpcf7-recaptcha-controls', plugins_url( 'assets/js/wpcf7-recaptcha-controls.js', __FILE__ ), array(), '1.1', true );
|
73 |
+
wp_register_script( 'google-recaptcha', $url, array( 'wpcf7-recaptcha-controls' ), '2.0', true );
|
74 |
wp_localize_script( 'google-recaptcha', 'wpcf7iqfix', array(
|
75 |
'recaptcha_empty' => esc_html__( 'Please verify that you are not a robot.', 'wpcf7-recaptcha' ),
|
76 |
'response_err' => esc_html__( 'wpcf7-recaptcha: Could not verify reCaptcha response.', 'wpcf7-recaptcha' ),
|
77 |
) );
|
|
|
78 |
|
79 |
}
|
80 |
// See `iqfix_wpcf7_manage_hooks` callback above
|
173 |
}
|
174 |
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
/**
|
177 |
* Verify submission is legitimate, verify reCaptcha response
|
178 |
*
|
wpcf7-recaptcha.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: ReCaptcha v2 for Contact Form 7
|
4 |
* Description: ReCaptcha v2 Fix for Contact Form 7 5.1 and later.
|
5 |
-
* Version: 1.2.
|
6 |
* Author: IQComputing
|
7 |
* Author URI: http://www.iqcomputing.com/
|
8 |
* License: GPL2
|
@@ -24,7 +24,7 @@ Class IQFix_WPCF7_Deity {
|
|
24 |
*
|
25 |
* @var String
|
26 |
*/
|
27 |
-
public static $version = '1.2.
|
28 |
|
29 |
|
30 |
/**
|
2 |
/**
|
3 |
* Plugin Name: ReCaptcha v2 for Contact Form 7
|
4 |
* Description: ReCaptcha v2 Fix for Contact Form 7 5.1 and later.
|
5 |
+
* Version: 1.2.9
|
6 |
* Author: IQComputing
|
7 |
* Author URI: http://www.iqcomputing.com/
|
8 |
* License: GPL2
|
24 |
*
|
25 |
* @var String
|
26 |
*/
|
27 |
+
public static $version = '1.2.9';
|
28 |
|
29 |
|
30 |
/**
|