Version Description
(2022-01-03) = * Happy New Year! * Fixed issue with reCpatcha not appearing in the new WordPress Full Site Editing feature of TwentyTwentyTwo theme. Thanks @gerhardfasol !
Download this release
Release Info
Developer | IQComputing |
Plugin | Contact Form 7 – reCaptcha v2 |
Version | 1.3.7 |
Comparing to | |
See all releases |
Code changes from version 1.3.6 to 1.3.7
- changelog.txt +10 -0
- readme.txt +6 -6
- recaptcha-v2.php +7 -8
- wpcf7-recaptcha.php +2 -2
changelog.txt
CHANGED
@@ -2,6 +2,16 @@
|
|
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.3.6 =
|
6 |
|
7 |
Release Date: November 29, 2021
|
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.3.7 =
|
6 |
+
|
7 |
+
Release Date: January 03, 2022
|
8 |
+
|
9 |
+
* Happy New Year!
|
10 |
+
* Overview
|
11 |
+
* User @gerhardfasol reported an issue of the reCaptcha not appearing in the new Full Site Editing feature of TwentyTwentyTwo theme.
|
12 |
+
FSE not longer allows late calls to `wp_enqueue_script()` function and expects all scripts to be added via the `wp_enqueue_scripts` hook.
|
13 |
+
We have removed the late function call in favor of the hook which seems to work for FSE and backwards compatibility.
|
14 |
+
|
15 |
= 1.3.6 =
|
16 |
|
17 |
Release Date: November 29, 2021
|
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.8
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -60,12 +60,12 @@ Should the above be correct, at this point it's time to open a support thread fo
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
|
|
|
|
|
|
|
|
63 |
= 1.3.6 (2021-11-29) =
|
64 |
* Resolved conflict with Conditional Fields for Contact Form 7.
|
65 |
|
66 |
= 1.3.5 (2021-06-21) =
|
67 |
-
* Updated support for WordPress 5.8
|
68 |
-
|
69 |
-
= 1.3.4 (2021-06-14) =
|
70 |
-
* Updated the controls JS file to be encapsulated.
|
71 |
-
* Added the reCaptcha error messages to the Contact Form 7 "Messages" screen so they may be changed.
|
3 |
Tags: contact-form-7, contact-form-7-recaptcha, recaptcha, spam
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 1.3.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 1.3.7 (2022-01-03) =
|
64 |
+
* Happy New Year!
|
65 |
+
* Fixed issue with reCpatcha not appearing in the new WordPress Full Site Editing feature of TwentyTwentyTwo theme. Thanks @gerhardfasol !
|
66 |
+
|
67 |
= 1.3.6 (2021-11-29) =
|
68 |
* Resolved conflict with Conditional Fields for Contact Form 7.
|
69 |
|
70 |
= 1.3.5 (2021-06-21) =
|
71 |
+
* Updated support for WordPress 5.8
|
|
|
|
|
|
|
|
recaptcha-v2.php
CHANGED
@@ -21,7 +21,6 @@ function iqfix_wpcf7_manage_hooks() {
|
|
21 |
|
22 |
// reCaptcha Enqueues
|
23 |
remove_action( 'wp_enqueue_scripts', 'wpcf7_recaptcha_enqueue_scripts', 20 );
|
24 |
-
add_action( 'wp_enqueue_scripts', 'iqfix_wpcf7_recaptcha_enqueue_scripts', 9 );
|
25 |
|
26 |
// reCaptcha Footer Javascript
|
27 |
remove_action( 'wp_footer', 'wpcf7_recaptcha_onload_script', 40 );
|
@@ -59,6 +58,10 @@ add_action( 'wpcf7_init', 'iqfix_wpcf7_add_recaptcha_tag', 20 );
|
|
59 |
*/
|
60 |
function iqfix_wpcf7_recaptcha_enqueue_scripts() {
|
61 |
|
|
|
|
|
|
|
|
|
62 |
$source = WPCF7::get_option( 'iqfix_recaptcha_source' );
|
63 |
$source = IQFix_WPCF7_Deity::verify_recaptcha_source( $source );
|
64 |
|
@@ -75,9 +78,11 @@ function iqfix_wpcf7_recaptcha_enqueue_scripts() {
|
|
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 |
-
|
81 |
|
82 |
|
83 |
/**
|
@@ -93,12 +98,6 @@ function iqfix_wpcf7_recaptcha_enqueue_scripts() {
|
|
93 |
*/
|
94 |
function iqfix_wpcf7_recaptcha_form_tag_handler( $tag ) {
|
95 |
|
96 |
-
if ( ! wp_script_is( 'google-recaptcha', 'registered' ) && function_exists( 'wpcf7_recaptcha_enqueue_scripts' ) ) {
|
97 |
-
wpcf7_recaptcha_enqueue_scripts();
|
98 |
-
}
|
99 |
-
|
100 |
-
wp_enqueue_script( 'google-recaptcha' );
|
101 |
-
|
102 |
$atts = array();
|
103 |
|
104 |
$recaptcha = WPCF7_RECAPTCHA::get_instance();
|
21 |
|
22 |
// reCaptcha Enqueues
|
23 |
remove_action( 'wp_enqueue_scripts', 'wpcf7_recaptcha_enqueue_scripts', 20 );
|
|
|
24 |
|
25 |
// reCaptcha Footer Javascript
|
26 |
remove_action( 'wp_footer', 'wpcf7_recaptcha_onload_script', 40 );
|
58 |
*/
|
59 |
function iqfix_wpcf7_recaptcha_enqueue_scripts() {
|
60 |
|
61 |
+
if( wp_script_is( 'google-recaptcha', 'registered' ) ) {
|
62 |
+
return;
|
63 |
+
}
|
64 |
+
|
65 |
$source = WPCF7::get_option( 'iqfix_recaptcha_source' );
|
66 |
$source = IQFix_WPCF7_Deity::verify_recaptcha_source( $source );
|
67 |
|
78 |
'recaptcha_empty' => esc_html__( 'Please verify that you are not a robot.', 'wpcf7-recaptcha' ),
|
79 |
'response_err' => esc_html__( 'wpcf7-recaptcha: Could not verify reCaptcha response.', 'wpcf7-recaptcha' ),
|
80 |
) );
|
81 |
+
|
82 |
+
wp_enqueue_script( 'google-recaptcha' );
|
83 |
|
84 |
}
|
85 |
+
add_action( 'wp_enqueue_scripts', 'iqfix_wpcf7_recaptcha_enqueue_scripts', 50 );
|
86 |
|
87 |
|
88 |
/**
|
98 |
*/
|
99 |
function iqfix_wpcf7_recaptcha_form_tag_handler( $tag ) {
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
$atts = array();
|
102 |
|
103 |
$recaptcha = WPCF7_RECAPTCHA::get_instance();
|
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.3.
|
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.3.
|
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.3.7
|
6 |
* Author: IQComputing
|
7 |
* Author URI: http://www.iqcomputing.com/
|
8 |
* License: GPL2
|
24 |
*
|
25 |
* @var String
|
26 |
*/
|
27 |
+
public static $version = '1.3.7';
|
28 |
|
29 |
|
30 |
/**
|