Version Description
Quick fix release to fix PHP error introduced in 1.6.3.
Download this release
Release Info
Developer | DaoByDesign |
Plugin | Contact Form 7 Honeypot |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.4
- honeypot.php +46 -25
- readme.txt +12 -3
honeypot.php
CHANGED
@@ -5,10 +5,10 @@ Plugin URI: http://www.daobydesign.com/free-plugins/honeypot-module-for-contact-
|
|
5 |
Description: Add honeypot anti-spam functionality to the popular Contact Form 7 plugin.
|
6 |
Author: Dao By Design
|
7 |
Author URI: http://www.daobydesign.com
|
8 |
-
Version: 1.6.
|
9 |
*/
|
10 |
|
11 |
-
/* Copyright
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License as published by
|
@@ -106,40 +106,61 @@ function wpcf7_honeypot_filter ( $result, $tag ) {
|
|
106 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_honeypot', 35 );
|
107 |
|
108 |
function wpcf7_add_tag_generator_honeypot() {
|
109 |
-
|
110 |
-
|
111 |
-
}
|
112 |
}
|
113 |
|
114 |
-
function wpcf7_tg_pane_honeypot(
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
<tr>
|
|
|
|
|
|
|
119 |
<td>
|
120 |
-
<?php echo
|
121 |
-
<
|
122 |
-
<em><small><?php echo esc_html( __( 'For better security, change "honeypot" to something less bot-recognizable.', 'wpcf7_honeypot' ) ); ?></small></em>
|
123 |
</td>
|
124 |
-
<td></td>
|
125 |
</tr>
|
126 |
-
|
127 |
<tr>
|
|
|
|
|
|
|
128 |
<td>
|
129 |
-
<
|
130 |
-
<input type="text" name="id" class="idvalue oneline option" />
|
131 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
<td>
|
133 |
-
<
|
134 |
-
<input type="text" name="class" class="classvalue oneline option" />
|
135 |
</td>
|
136 |
-
</tr>
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
</form>
|
141 |
</div>
|
142 |
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
-
|
|
|
|
|
|
|
|
5 |
Description: Add honeypot anti-spam functionality to the popular Contact Form 7 plugin.
|
6 |
Author: Dao By Design
|
7 |
Author URI: http://www.daobydesign.com
|
8 |
+
Version: 1.6.4
|
9 |
*/
|
10 |
|
11 |
+
/* Copyright 2015 Dao By Design (email : info@daobydesign.com)
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License as published by
|
106 |
add_action( 'admin_init', 'wpcf7_add_tag_generator_honeypot', 35 );
|
107 |
|
108 |
function wpcf7_add_tag_generator_honeypot() {
|
109 |
+
$tag_generator = WPCF7_TagGenerator::get_instance();
|
110 |
+
$tag_generator->add( 'honeypot', __( 'Honeypot', 'contact-form-7' ), 'wpcf7_tg_pane_honeypot' );
|
|
|
111 |
}
|
112 |
|
113 |
+
function wpcf7_tg_pane_honeypot($contact_form, $args = '') {
|
114 |
+
$args = wp_parse_args( $args, array() );
|
115 |
+
$description = __( "Generate a form-tag for a spam-stopping honeypot field. For more details, see %s.", 'wpcf7_honeypot' );
|
116 |
+
$desc_link = wpcf7_link( __( 'https://wordpress.org/plugins/contact-form-7-honeypot/', 'wpcf7_honeypot' ), __( 'CF7 Honeypot', 'wpcf7_honeypot' ) );
|
117 |
+
?>
|
118 |
+
<div class="control-box">
|
119 |
+
<fieldset>
|
120 |
+
<legend><?php echo sprintf( esc_html( $description ), $desc_link ); ?></legend>
|
121 |
+
|
122 |
+
<table class="form-table"><tbody>
|
123 |
<tr>
|
124 |
+
<th scope="row">
|
125 |
+
<label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label>
|
126 |
+
</th>
|
127 |
<td>
|
128 |
+
<input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /><br>
|
129 |
+
<em><?php echo esc_html( __( 'For better security, change "honeypot" to something less bot-recognizable.', 'wpcf7_honeypot' ) ); ?></em>
|
|
|
130 |
</td>
|
|
|
131 |
</tr>
|
132 |
+
|
133 |
<tr>
|
134 |
+
<th scope="row">
|
135 |
+
<label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label>
|
136 |
+
</th>
|
137 |
<td>
|
138 |
+
<input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" />
|
|
|
139 |
</td>
|
140 |
+
</tr>
|
141 |
+
|
142 |
+
<tr>
|
143 |
+
<th scope="row">
|
144 |
+
<label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label>
|
145 |
+
</th>
|
146 |
<td>
|
147 |
+
<input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" />
|
|
|
148 |
</td>
|
149 |
+
</tr>
|
150 |
+
|
151 |
+
</tbody></table>
|
152 |
+
</fieldset>
|
|
|
153 |
</div>
|
154 |
|
155 |
+
<div class="insert-box">
|
156 |
+
<input type="text" name="honeypot" class="tag code" readonly="readonly" onfocus="this.select()" />
|
157 |
+
|
158 |
+
<div class="submitbox">
|
159 |
+
<input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __( 'Insert Tag', 'contact-form-7' ) ); ?>" />
|
160 |
+
</div>
|
161 |
|
162 |
+
<br class="clear" />
|
163 |
+
</div>
|
164 |
+
|
165 |
+
<?php
|
166 |
+
}
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Contact Form 7 Honeypot ===
|
2 |
Tags: honeypot, antispam, captcha, spam, form, forms, contact form 7, contactform7, contact form, cf7, cforms, Contact Forms 7, Contact Forms, contacts
|
3 |
Requires at least: 3.5
|
4 |
-
Tested up to: 4.
|
5 |
-
Stable tag: 1.6.
|
6 |
Contributors: DaoByDesign
|
7 |
Donate link: http://www.daobydesign.com/buy-us-a-coffee/
|
8 |
License: GPLv2 or later
|
@@ -14,7 +14,7 @@ Contact Form 7 Honeypot - Adds honeypot anti-spam functionality to CF7 forms.
|
|
14 |
|
15 |
This simple addition to the wonderful <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a> (CF7) plugin adds basic honeypot anti-spam functionality to thwart spambots without the need for an ugly captcha.
|
16 |
|
17 |
-
The principle of a honeypot is simple -- <em>bots are stupid</em>. While some spam is hand-delivered, the vast majority is submitted by bots scripted in a specific (wide-scope) way to submit spam to the largest number of form types. In this way they somewhat blindly fill in fields,
|
18 |
|
19 |
Follow us on [Twitter](http://www.twitter.com/daobydesign) and on [Facebook](http://www.facebook.com/daobydesign) for updates and news.
|
20 |
|
@@ -62,6 +62,12 @@ add_filter('wpcf7_honeypot_html_output', 'my_honeypot_override', 10, 2 ); ?>`
|
|
62 |
* Yep! New in version 1.5 of the plugin you're able to adjust the HTML by hooking the output filter for the plugin. See the **Installation** section for more details.
|
63 |
|
64 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
= 1.6.2 =
|
66 |
Small change to accommodate validation changes made in CF7 4.1.
|
67 |
|
@@ -90,6 +96,9 @@ Small update for W3C compliance. Thanks <a href="http://wordpress.org/support/to
|
|
90 |
* Initial release.
|
91 |
|
92 |
== Upgrade Notice ==
|
|
|
|
|
|
|
93 |
= 1.6.2 =
|
94 |
Must update if running CF7 4.1 or above. Update also compatible with CF7 3.6 and above. If using less than CF7 3.6, use the v1.3 of this plugin.
|
95 |
|
1 |
=== Contact Form 7 Honeypot ===
|
2 |
Tags: honeypot, antispam, captcha, spam, form, forms, contact form 7, contactform7, contact form, cf7, cforms, Contact Forms 7, Contact Forms, contacts
|
3 |
Requires at least: 3.5
|
4 |
+
Tested up to: 4.2
|
5 |
+
Stable tag: 1.6.4
|
6 |
Contributors: DaoByDesign
|
7 |
Donate link: http://www.daobydesign.com/buy-us-a-coffee/
|
8 |
License: GPLv2 or later
|
14 |
|
15 |
This simple addition to the wonderful <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a> (CF7) plugin adds basic honeypot anti-spam functionality to thwart spambots without the need for an ugly captcha.
|
16 |
|
17 |
+
The principle of a honeypot is simple -- <em>bots are stupid</em>. While some spam is hand-delivered, the vast majority is submitted by bots scripted in a specific (wide-scope) way to submit spam to the largest number of form types. In this way they somewhat blindly fill in fields, regardless of whether the field should be filled in or not. This is how a honeypot catches the bot -- it introduces an additional field in the form that if filled out will cause the form not to validate.
|
18 |
|
19 |
Follow us on [Twitter](http://www.twitter.com/daobydesign) and on [Facebook](http://www.facebook.com/daobydesign) for updates and news.
|
20 |
|
62 |
* Yep! New in version 1.5 of the plugin you're able to adjust the HTML by hooking the output filter for the plugin. See the **Installation** section for more details.
|
63 |
|
64 |
== Changelog ==
|
65 |
+
= 1.6.4 =
|
66 |
+
Quick fix release to fix PHP error introduced in 1.6.3.
|
67 |
+
|
68 |
+
= 1.6.3 =
|
69 |
+
Updates to accommodate changes to the CF7 editor user interface.
|
70 |
+
|
71 |
= 1.6.2 =
|
72 |
Small change to accommodate validation changes made in CF7 4.1.
|
73 |
|
96 |
* Initial release.
|
97 |
|
98 |
== Upgrade Notice ==
|
99 |
+
= 1.6.3 =
|
100 |
+
Must update if running CF7 4.2 or above. If using less than CF7 4.2, use the v1.6.2 of this plugin.
|
101 |
+
|
102 |
= 1.6.2 =
|
103 |
Must update if running CF7 4.1 or above. Update also compatible with CF7 3.6 and above. If using less than CF7 3.6, use the v1.3 of this plugin.
|
104 |
|