Contact Form 7 Honeypot - Version 1.1

Version Description

Small update for W3C compliance. Thanks Jeff.

Download this release

Release Info

Developer DaoByDesign
Plugin Icon 128x128 Contact Form 7 Honeypot
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

Files changed (2) hide show
  1. honeypot.php +5 -7
  2. readme.txt +3 -0
honeypot.php CHANGED
@@ -5,10 +5,10 @@ Plugin URI: http://www.daobydesign.com/free-plugins/honeypot-module-for-contact-
5
  Description: Add honeypot functionality to the popular Contact Form 7 plugin.
6
  Author: Dao By Design
7
  Author URI: http://www.daobydesign.com
8
- Version: 1.0.0
9
  */
10
 
11
- /* Copyright 2011 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
@@ -74,13 +74,11 @@ function wpcf7_honeypot_shortcode_handler( $tag ) {
74
  if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) )
75
  $validation_error = $wpcf7_contact_form->validation_error( $name );
76
 
77
- $html = '<div style="display:none;" class="hidden">
78
- <label for="email-wpcf7-hp"><small>Leave this field empty.</small></label>
79
- <input class="wpcf7-text" type="text" name="email-wpcf7-hp" id="email-wpcf7-hp" value="" size="40" tabindex="3" />
80
- </div>';
81
 
82
 
83
- $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . $html . $validation_error . '</span>';
84
 
85
  return $html;
86
  }
5
  Description: Add honeypot functionality to the popular Contact Form 7 plugin.
6
  Author: Dao By Design
7
  Author URI: http://www.daobydesign.com
8
+ Version: 1.1
9
  */
10
 
11
+ /* Copyright 2013 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
74
  if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) )
75
  $validation_error = $wpcf7_contact_form->validation_error( $name );
76
 
77
+ $html = '<label for="email-wpcf7-hp"><small>Leave this field empty.</small></label>
78
+ <input class="wpcf7-text" type="text" name="email-wpcf7-hp" id="email-wpcf7-hp" value="" size="40" tabindex="3" />';
 
 
79
 
80
 
81
+ $html = '<span class="wpcf7-form-control-wrap hidden' . $name . '" style="display:none;">' . $html . $validation_error . '</span>';
82
 
83
  return $html;
84
  }
readme.txt CHANGED
@@ -42,5 +42,8 @@ Visit the <a href="http://www.daobydesign.com/free-plugins/honeypot-module-for-c
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 1.0.0 =
46
  * Initial release.
42
 
43
  == Changelog ==
44
 
45
+ = 1.1 =
46
+ Small update for W3C compliance. Thanks <a href="http://wordpress.org/support/topic/plugin-contact-form-7-honeypot-not-w3c-compliant">Jeff</a>.
47
+
48
  = 1.0.0 =
49
  * Initial release.