Version Description
Download this release
Release Info
Developer | 247wd |
Plugin | Contact Form 7 Captcha |
Version | 0.1.0 |
Comparing to | |
See all releases |
Code changes from version 0.0.9 to 0.1.0
- contact-form-7-simple-recaptcha.php +3 -3
- readme.txt +1 -1
contact-form-7-simple-recaptcha.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Contact Form 7 Captcha
|
4 |
Description: Add No CAPTCHA reCAPTCHA to Contact Form 7 using [cf7sr-simple-recaptcha] shortcode
|
5 |
-
Version: 0.0
|
6 |
Author: 247wd
|
7 |
*/
|
8 |
|
@@ -24,7 +24,7 @@ if (!empty($cf7sr_key) && !empty($cf7sr_secret) && !is_admin()) {
|
|
24 |
for (var i = 0; i < cf7srWidgets.length; ++i) {
|
25 |
var cf7srWidget = cf7srWidgets[i];
|
26 |
var widgetId = grecaptcha.render(cf7srWidget.id, {
|
27 |
-
'sitekey' :
|
28 |
});
|
29 |
widgetIds.push(widgetId);
|
30 |
}
|
@@ -37,7 +37,7 @@ if (!empty($cf7sr_key) && !empty($cf7sr_secret) && !is_admin()) {
|
|
37 |
});
|
38 |
})(jQuery);
|
39 |
</script>
|
40 |
-
<script src="<?php echo $cf7sr_script_url; ?>" async defer></script>
|
41 |
<?php
|
42 |
}
|
43 |
add_action('wp_footer', 'enqueue_cf7sr_script');
|
2 |
/*
|
3 |
Plugin Name: Contact Form 7 Captcha
|
4 |
Description: Add No CAPTCHA reCAPTCHA to Contact Form 7 using [cf7sr-simple-recaptcha] shortcode
|
5 |
+
Version: 0.1.0
|
6 |
Author: 247wd
|
7 |
*/
|
8 |
|
24 |
for (var i = 0; i < cf7srWidgets.length; ++i) {
|
25 |
var cf7srWidget = cf7srWidgets[i];
|
26 |
var widgetId = grecaptcha.render(cf7srWidget.id, {
|
27 |
+
'sitekey' : <?php echo wp_json_encode($cf7sr_key); ?>
|
28 |
});
|
29 |
widgetIds.push(widgetId);
|
30 |
}
|
37 |
});
|
38 |
})(jQuery);
|
39 |
</script>
|
40 |
+
<script src="<?php echo esc_url($cf7sr_script_url); ?>" async defer></script>
|
41 |
<?php
|
42 |
}
|
43 |
add_action('wp_footer', 'enqueue_cf7sr_script');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/cf7captcha
|
|
4 |
Tags: captcha, recaptcha, new recaptcha, contact form 7, no captcha
|
5 |
Requires at least: 4.1.2
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: captcha, recaptcha, new recaptcha, contact form 7, no captcha
|
5 |
Requires at least: 4.1.2
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 0.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|