Version Description
- Fix: options with empty values didn't work correctly in a drop-down menu.
- Fix: broke layout of input fields after validation by an incorrect jQuery use.
- Fix: couldn't enqueue JavaScript manually with wpcf7_enqueue_scripts() when WPCF7_LOAD_JS was false.
- Fix: couldn't enqueue CSS manually with wpcf7_enqueue_styles() when WPCF7_LOAD_CSS was false.
- Translations for Greek and Hungarian have been updated.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 3.9.1 |
Comparing to | |
See all releases |
Code changes from version 3.9 to 3.9.1
- includes/controller.php +15 -14
- includes/functions.php +1 -5
- includes/js/scripts.js +3 -1
- languages/contact-form-7-el.mo +0 -0
- languages/contact-form-7-hu_HU.mo +0 -0
- readme.txt +10 -2
- wp-contact-form-7.php +2 -2
includes/controller.php
CHANGED
@@ -176,13 +176,19 @@ function wpcf7_contact_form_tag_func( $atts, $content = null, $code = '' ) {
|
|
176 |
return $contact_form->form_html( $atts );
|
177 |
}
|
178 |
|
179 |
-
add_action( 'wp_enqueue_scripts', '
|
180 |
|
181 |
-
function
|
182 |
-
if (
|
183 |
-
|
|
|
|
|
|
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
// jquery.form.js originally bundled with WordPress is out of date and deprecated
|
187 |
// so we need to deregister it and re-register the latest one
|
188 |
wp_deregister_script( 'jquery-form' );
|
@@ -219,13 +225,7 @@ function wpcf7_script_is() {
|
|
219 |
return wp_script_is( 'contact-form-7' );
|
220 |
}
|
221 |
|
222 |
-
add_action( 'wp_enqueue_scripts', 'wpcf7_enqueue_styles' );
|
223 |
-
|
224 |
function wpcf7_enqueue_styles() {
|
225 |
-
if ( ! wpcf7_load_css() ) {
|
226 |
-
return;
|
227 |
-
}
|
228 |
-
|
229 |
wp_enqueue_style( 'contact-form-7',
|
230 |
wpcf7_plugin_url( 'includes/css/styles.css' ),
|
231 |
array(), WPCF7_VERSION, 'all' );
|
@@ -245,18 +245,19 @@ function wpcf7_style_is() {
|
|
245 |
|
246 |
/* HTML5 Fallback */
|
247 |
|
248 |
-
add_action( 'wp_enqueue_scripts', 'wpcf7_html5_fallback',
|
249 |
|
250 |
function wpcf7_html5_fallback() {
|
251 |
-
if ( ! wpcf7_support_html5_fallback() )
|
252 |
return;
|
|
|
253 |
|
254 |
-
if (
|
255 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
256 |
wp_enqueue_script( 'jquery-ui-spinner' );
|
257 |
}
|
258 |
|
259 |
-
if (
|
260 |
wp_enqueue_style( 'jquery-ui-smoothness',
|
261 |
wpcf7_plugin_url( 'includes/js/jquery-ui/themes/smoothness/jquery-ui.min.css' ), array(), '1.10.3', 'screen' );
|
262 |
}
|
176 |
return $contact_form->form_html( $atts );
|
177 |
}
|
178 |
|
179 |
+
add_action( 'wp_enqueue_scripts', 'wpcf7_do_enqueue_scripts' );
|
180 |
|
181 |
+
function wpcf7_do_enqueue_scripts() {
|
182 |
+
if ( wpcf7_load_js() ) {
|
183 |
+
wpcf7_enqueue_scripts();
|
184 |
+
}
|
185 |
+
|
186 |
+
if ( wpcf7_load_css() ) {
|
187 |
+
wpcf7_enqueue_styles();
|
188 |
}
|
189 |
+
}
|
190 |
|
191 |
+
function wpcf7_enqueue_scripts() {
|
192 |
// jquery.form.js originally bundled with WordPress is out of date and deprecated
|
193 |
// so we need to deregister it and re-register the latest one
|
194 |
wp_deregister_script( 'jquery-form' );
|
225 |
return wp_script_is( 'contact-form-7' );
|
226 |
}
|
227 |
|
|
|
|
|
228 |
function wpcf7_enqueue_styles() {
|
|
|
|
|
|
|
|
|
229 |
wp_enqueue_style( 'contact-form-7',
|
230 |
wpcf7_plugin_url( 'includes/css/styles.css' ),
|
231 |
array(), WPCF7_VERSION, 'all' );
|
245 |
|
246 |
/* HTML5 Fallback */
|
247 |
|
248 |
+
add_action( 'wp_enqueue_scripts', 'wpcf7_html5_fallback', 20 );
|
249 |
|
250 |
function wpcf7_html5_fallback() {
|
251 |
+
if ( ! wpcf7_support_html5_fallback() ) {
|
252 |
return;
|
253 |
+
}
|
254 |
|
255 |
+
if ( wpcf7_script_is() ) {
|
256 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
257 |
wp_enqueue_script( 'jquery-ui-spinner' );
|
258 |
}
|
259 |
|
260 |
+
if ( wpcf7_style_is() ) {
|
261 |
wp_enqueue_style( 'jquery-ui-smoothness',
|
262 |
wpcf7_plugin_url( 'includes/js/jquery-ui/themes/smoothness/jquery-ui.min.css' ), array(), '1.10.3', 'screen' );
|
263 |
}
|
includes/functions.php
CHANGED
@@ -209,11 +209,7 @@ function wpcf7_format_atts( $atts ) {
|
|
209 |
foreach ( $prioritized_atts as $att ) {
|
210 |
if ( isset( $atts[$att] ) ) {
|
211 |
$value = trim( $atts[$att] );
|
212 |
-
|
213 |
-
if ( '' !== $value ) {
|
214 |
-
$html .= sprintf( ' %s="%s"', $att, esc_attr( $value ) );
|
215 |
-
}
|
216 |
-
|
217 |
unset( $atts[$att] );
|
218 |
}
|
219 |
}
|
209 |
foreach ( $prioritized_atts as $att ) {
|
210 |
if ( isset( $atts[$att] ) ) {
|
211 |
$value = trim( $atts[$att] );
|
212 |
+
$html .= sprintf( ' %s="%s"', $att, esc_attr( $value ) );
|
|
|
|
|
|
|
|
|
213 |
unset( $atts[$att] );
|
214 |
}
|
215 |
}
|
includes/js/scripts.js
CHANGED
@@ -229,7 +229,9 @@
|
|
229 |
$.fn.wpcf7NotValidTip = function(message) {
|
230 |
return this.each(function() {
|
231 |
var $into = $(this);
|
232 |
-
|
|
|
|
|
233 |
|
234 |
if ($into.is('.use-floating-validation-tip *')) {
|
235 |
$('.wpcf7-not-valid-tip', $into).mouseover(function() {
|
229 |
$.fn.wpcf7NotValidTip = function(message) {
|
230 |
return this.each(function() {
|
231 |
var $into = $(this);
|
232 |
+
|
233 |
+
$into.find('span.wpcf7-not-valid-tip').remove();
|
234 |
+
$into.append('<span role="alert" class="wpcf7-not-valid-tip">' + message + '</span>');
|
235 |
|
236 |
if ($into.is('.use-floating-validation-tip *')) {
|
237 |
$('.wpcf7-not-valid-tip', $into).mouseover(function() {
|
languages/contact-form-7-el.mo
CHANGED
Binary file
|
languages/contact-form-7-hu_HU.mo
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://contactform7.com/donate/
|
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 3.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -58,7 +58,7 @@ The following are other recommended plugins by the author of Contact Form 7.
|
|
58 |
* Galician (gl_ES) - [Arume Desenvolvementos Informáticos](http://www.arumeinformatica.es/)
|
59 |
* Georgian (ka_GE) - [Nodar Rocko Davituri](http://davituri.com/)
|
60 |
* German (de_DE) - [Marcel Spitau](http://blog.spitau.de), [Ivan Graf](http://blog.bildergallery.com/)
|
61 |
-
* Greek (el) - [Nick Mouratidis](http://www.kepik.gr/), [Pr. friedlich](http://friedlich.wordpress.com/)
|
62 |
* Gujarati (gu_IN) - [Apoto](http://www.apoto.com/)
|
63 |
* Haitian (ht) - [Lam Tu Do](http://bizover.net/)
|
64 |
* Hebrew (he_IL) - [Yaron Ofer](http://www.gadgetguru.co.il/), [Arik Galansky](http://www.arikg.co.il/)
|
@@ -124,6 +124,14 @@ Do you have questions or issues with Contact Form 7? Use these support channels
|
|
124 |
|
125 |
For more information, see [Releases](http://contactform7.com/category/releases/).
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
= 3.9 =
|
128 |
|
129 |
* A major change has been made to the internal structure. For details, see [beta release announcement](http://contactform7.com/2014/07/02/contact-form-7-39-beta/).
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 3.9.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
58 |
* Galician (gl_ES) - [Arume Desenvolvementos Informáticos](http://www.arumeinformatica.es/)
|
59 |
* Georgian (ka_GE) - [Nodar Rocko Davituri](http://davituri.com/)
|
60 |
* German (de_DE) - [Marcel Spitau](http://blog.spitau.de), [Ivan Graf](http://blog.bildergallery.com/)
|
61 |
+
* Greek (el) - [Nick Mouratidis](http://www.kepik.gr/), [Pr. friedlich](http://friedlich.wordpress.com/), John D. Dimoferlias
|
62 |
* Gujarati (gu_IN) - [Apoto](http://www.apoto.com/)
|
63 |
* Haitian (ht) - [Lam Tu Do](http://bizover.net/)
|
64 |
* Hebrew (he_IL) - [Yaron Ofer](http://www.gadgetguru.co.il/), [Arik Galansky](http://www.arikg.co.il/)
|
124 |
|
125 |
For more information, see [Releases](http://contactform7.com/category/releases/).
|
126 |
|
127 |
+
= 3.9.1 =
|
128 |
+
|
129 |
+
* Fix: options with empty values didn't work correctly in a drop-down menu.
|
130 |
+
* Fix: broke layout of input fields after validation by an incorrect jQuery use.
|
131 |
+
* Fix: couldn't enqueue JavaScript manually with wpcf7_enqueue_scripts() when WPCF7_LOAD_JS was false.
|
132 |
+
* Fix: couldn't enqueue CSS manually with wpcf7_enqueue_styles() when WPCF7_LOAD_CSS was false.
|
133 |
+
* Translations for Greek and Hungarian have been updated.
|
134 |
+
|
135 |
= 3.9 =
|
136 |
|
137 |
* A major change has been made to the internal structure. For details, see [beta release announcement](http://contactform7.com/2014/07/02/contact-form-7-39-beta/).
|
wp-contact-form-7.php
CHANGED
@@ -7,7 +7,7 @@ Author: Takayuki Miyoshi
|
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 3.9
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
|
@@ -27,7 +27,7 @@ Version: 3.9
|
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
-
define( 'WPCF7_VERSION', '3.9' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.8' );
|
33 |
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 3.9.1
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
+
define( 'WPCF7_VERSION', '3.9.1' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.8' );
|
33 |
|