Version Description
(2019-01-07) = * Adds message whenever user forgets to click reCaptcha checkbox.
Download this release
Release Info
Developer | IQComputing |
Plugin | Contact Form 7 – reCaptcha v2 |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- changelog.txt +7 -0
- readme.txt +4 -1
- recaptcha-v2.php +14 -0
- wpcf7-recaptcha.php +2 -2
changelog.txt
CHANGED
@@ -2,6 +2,13 @@
|
|
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.1.0 =
|
6 |
|
7 |
Release Date: December 28, 2018
|
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.1.1 =
|
6 |
+
|
7 |
+
Release Date: January 07, 2019
|
8 |
+
|
9 |
+
* Overview
|
10 |
+
* Adds message whenever user forgets to click reCaptcha checkbox.
|
11 |
+
|
12 |
= 1.1.0 =
|
13 |
|
14 |
Release Date: December 28, 2018
|
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.0.2
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -59,6 +59,9 @@ Should the above be correct, at this point it's time to open a support thread fo
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
62 |
= 1.1.0 (2018-12-28) =
|
63 |
* Prevents Contact Form 7 from removing reCaptcha keys upon update.
|
64 |
* Removes Contact Form 7 reCaptcha upgrade notice.
|
3 |
Tags: contact-form-7, contact-form-7-recaptcha, recaptcha, spam
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.0.2
|
6 |
+
Stable tag: 1.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 1.1.1 (2019-01-07) =
|
63 |
+
* Adds message whenever user forgets to click reCaptcha checkbox.
|
64 |
+
|
65 |
= 1.1.0 (2018-12-28) =
|
66 |
* Prevents Contact Form 7 from removing reCaptcha keys upon update.
|
67 |
* Removes Contact Form 7 reCaptcha upgrade notice.
|
recaptcha-v2.php
CHANGED
@@ -67,6 +67,9 @@ function iqfix_wpcf7_recaptcha_enqueue_scripts() {
|
|
67 |
), $url );
|
68 |
|
69 |
wp_register_script( 'google-recaptcha', $url, array(), '2.0', true );
|
|
|
|
|
|
|
70 |
|
71 |
}
|
72 |
// See `iqfix_wpcf7_manage_hooks` callback above
|
@@ -140,6 +143,17 @@ document.addEventListener( 'wpcf7submit', function( event ) {
|
|
140 |
}
|
141 |
}
|
142 |
}, false );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
</script>
|
144 |
<?php
|
145 |
|
67 |
), $url );
|
68 |
|
69 |
wp_register_script( 'google-recaptcha', $url, array(), '2.0', true );
|
70 |
+
wp_localize_script( 'google-recaptcha', 'wpcf7iqfix', array(
|
71 |
+
'recaptcha_empty' => esc_html__( 'Please verify that you are not a robot.', 'iqc' ),
|
72 |
+
) );
|
73 |
|
74 |
}
|
75 |
// See `iqfix_wpcf7_manage_hooks` callback above
|
143 |
}
|
144 |
}
|
145 |
}, false );
|
146 |
+
|
147 |
+
( function( $ ) {
|
148 |
+
$( '.wpcf7' ).on( 'wpcf7:spam', function( e ) {
|
149 |
+
$( '[name="g-recaptcha-response"]', $( this ) ).each( function() {
|
150 |
+
if ( '' === $( this ).val() ) {
|
151 |
+
var $recaptcha = $( this ).closest( '.wpcf7-form-control-wrap' );
|
152 |
+
wpcf7.notValidTip( $recaptcha, wpcf7iqfix.recaptcha_empty );
|
153 |
+
}
|
154 |
+
} );
|
155 |
+
} );
|
156 |
+
} )( jQuery );
|
157 |
</script>
|
158 |
<?php
|
159 |
|
wpcf7-recaptcha.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Contact Form 7 - reCaptcha v2
|
4 |
* Description: ReCaptcha v2 Fix for Contact Form 7 5.1 and later.
|
5 |
-
* Version: 1.1.
|
6 |
* Author: IQComputing
|
7 |
* Author URI: http://www.iqcomputing.com/
|
8 |
* License: GPL2
|
@@ -19,7 +19,7 @@ defined( 'ABSPATH' ) or die( 'You cannot be here.' );
|
|
19 |
*/
|
20 |
Class IQFix_WPCF7_Deity {
|
21 |
|
22 |
-
public static $version = '1.1.
|
23 |
|
24 |
|
25 |
/**
|
2 |
/**
|
3 |
* Plugin Name: Contact Form 7 - reCaptcha v2
|
4 |
* Description: ReCaptcha v2 Fix for Contact Form 7 5.1 and later.
|
5 |
+
* Version: 1.1.1
|
6 |
* Author: IQComputing
|
7 |
* Author URI: http://www.iqcomputing.com/
|
8 |
* License: GPL2
|
19 |
*/
|
20 |
Class IQFix_WPCF7_Deity {
|
21 |
|
22 |
+
public static $version = '1.1.1';
|
23 |
|
24 |
|
25 |
/**
|