Version Description
- Fixed: Watermark option doesn't work on old browsers.
- Fixed: Telephone number validation doesn't accept space and parentheses.
- Translations for Russian, Slovak, Hungarian, German and Turkish have been updated.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 3.4.1 |
Comparing to | |
See all releases |
Code changes from version 3.4 to 3.4.1
- includes/formatting.php +1 -1
- includes/functions.php +1 -1
- includes/js/scripts.js +4 -1
- languages/wpcf7-de_DE.mo +0 -0
- languages/wpcf7-hu_HU.mo +0 -0
- languages/wpcf7-ru_RU.mo +0 -0
- languages/wpcf7-sk_SK.mo +0 -0
- languages/wpcf7-tr_TR.mo +0 -0
- readme.txt +8 -2
- wp-contact-form-7.php +2 -2
includes/formatting.php
CHANGED
@@ -129,7 +129,7 @@ function wpcf7_is_url( $url ) {
|
|
129 |
}
|
130 |
|
131 |
function wpcf7_is_tel( $tel ) {
|
132 |
-
$result = preg_match( '/^[0-9
|
133 |
return apply_filters( 'wpcf7_is_tel', $result, $tel );
|
134 |
}
|
135 |
|
129 |
}
|
130 |
|
131 |
function wpcf7_is_tel( $tel ) {
|
132 |
+
$result = preg_match( '/^[+]?[0-9() -]*$/', $tel );
|
133 |
return apply_filters( 'wpcf7_is_tel', $result, $tel );
|
134 |
}
|
135 |
|
includes/functions.php
CHANGED
@@ -109,7 +109,7 @@ function wpcf7_default_mail_2_template() {
|
|
109 |
$active = false;
|
110 |
$subject = '[your-subject]';
|
111 |
$sender = '[your-name] <[your-email]>';
|
112 |
-
$body = __( 'Message
|
113 |
. sprintf( __( 'This mail is sent via contact form on %1$s %2$s', 'wpcf7' ),
|
114 |
get_bloginfo( 'name' ), get_bloginfo( 'url' ) );
|
115 |
$recipient = '[your-email]';
|
109 |
$active = false;
|
110 |
$subject = '[your-subject]';
|
111 |
$sender = '[your-name] <[your-email]>';
|
112 |
+
$body = __( 'Message Body:', 'wpcf7' ) . "\n" . '[your-message]' . "\n\n" . '--' . "\n"
|
113 |
. sprintf( __( 'This mail is sent via contact form on %1$s %2$s', 'wpcf7' ),
|
114 |
get_bloginfo( 'name' ), get_bloginfo( 'url' ) );
|
115 |
$recipient = '[your-email]';
|
includes/js/scripts.js
CHANGED
@@ -7,6 +7,9 @@
|
|
7 |
|
8 |
_wpcf7 = $.extend({ cached: 0 }, _wpcf7);
|
9 |
|
|
|
|
|
|
|
10 |
$('div.wpcf7 > form').ajaxForm({
|
11 |
beforeSubmit: function(formData, jqForm, options) {
|
12 |
jqForm.wpcf7ClearResponseOutput();
|
@@ -107,7 +110,7 @@
|
|
107 |
$(n).find('[placeholder]').each(function(i, n) {
|
108 |
var input = $(n);
|
109 |
|
110 |
-
if (
|
111 |
return;
|
112 |
|
113 |
input.val(input.attr('placeholder'));
|
7 |
|
8 |
_wpcf7 = $.extend({ cached: 0 }, _wpcf7);
|
9 |
|
10 |
+
_wpcf7.supportHtml5Placeholder
|
11 |
+
= 'placeholder' in document.createElement('input');
|
12 |
+
|
13 |
$('div.wpcf7 > form').ajaxForm({
|
14 |
beforeSubmit: function(formData, jqForm, options) {
|
15 |
jqForm.wpcf7ClearResponseOutput();
|
110 |
$(n).find('[placeholder]').each(function(i, n) {
|
111 |
var input = $(n);
|
112 |
|
113 |
+
if (_wpcf7.supportHtml5Placeholder)
|
114 |
return;
|
115 |
|
116 |
input.val(input.attr('placeholder'));
|
languages/wpcf7-de_DE.mo
CHANGED
Binary file
|
languages/wpcf7-hu_HU.mo
CHANGED
Binary file
|
languages/wpcf7-ru_RU.mo
CHANGED
Binary file
|
languages/wpcf7-sk_SK.mo
CHANGED
Binary file
|
languages/wpcf7-tr_TR.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.5
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 3.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -80,7 +80,7 @@ The following are other recommended plugins by the author of Contact Form 7.
|
|
80 |
* Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/), [Anunturi Jibo](http://www.jibo.ro/), [Marius Olar](http://webdudes.ro/)
|
81 |
* Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/), [Aleksandar Urošević](http://blog.urosevic.net/)
|
82 |
* Sinhala (si_LK) - [Nitin Aggarwal](http://offshoreally.com/)
|
83 |
-
* Slovak (sk_SK) - [Patrik Bóna](http://www.mrhead.sk/)
|
84 |
* Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net), Jani Roskar
|
85 |
* Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog), [Vladimir Prieto](http://vladimir.prie.to/), [Federico Mikaelian](http://www.fedemika.com.ar/), [Matias Baldanza](http://matiasbaldanza.com/), [Carlos Agnese](http://albumdecarlitos.com.ar/)
|
86 |
* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
|
@@ -118,6 +118,12 @@ Do you have questions or issues with Contact Form 7? Use these support channels
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
= 3.4 =
|
122 |
|
123 |
* Introduced the following form-tags: [url] and [url\*] for URL field, [tel] and [tel\*] for telephone number field, [number], [number\*], [range] and [range\*] for number input field, and [date] and [date\*] for date input field.
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 3.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
80 |
* Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/), [Anunturi Jibo](http://www.jibo.ro/), [Marius Olar](http://webdudes.ro/)
|
81 |
* Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/), [Aleksandar Urošević](http://blog.urosevic.net/)
|
82 |
* Sinhala (si_LK) - [Nitin Aggarwal](http://offshoreally.com/)
|
83 |
+
* Slovak (sk_SK) - [Patrik Bóna](http://www.mrhead.sk/), [WordPress Slovakia](http://wp.sk/)
|
84 |
* Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net), Jani Roskar
|
85 |
* Spanish (es_ES) - [Jordi Sancho](http://www.qasolutions.net/blog), [Vladimir Prieto](http://vladimir.prie.to/), [Federico Mikaelian](http://www.fedemika.com.ar/), [Matias Baldanza](http://matiasbaldanza.com/), [Carlos Agnese](http://albumdecarlitos.com.ar/)
|
86 |
* Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 3.4.1 =
|
122 |
+
|
123 |
+
* Fixed: Watermark option doesn't work on old browsers.
|
124 |
+
* Fixed: Telephone number validation doesn't accept space and parentheses.
|
125 |
+
* Translations for Russian, Slovak, Hungarian, German and Turkish have been updated.
|
126 |
+
|
127 |
= 3.4 =
|
128 |
|
129 |
* Introduced the following form-tags: [url] and [url\*] for URL field, [tel] and [tel\*] for telephone number field, [number], [number\*], [range] and [range\*] for number input field, and [date] and [date\*] for date input field.
|
wp-contact-form-7.php
CHANGED
@@ -7,7 +7,7 @@ Author: Takayuki Miyoshi
|
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: wpcf7
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 3.4
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2013 Takayuki Miyoshi (email: takayukister at gmail.com)
|
@@ -27,7 +27,7 @@ Version: 3.4
|
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
-
define( 'WPCF7_VERSION', '3.4' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.5' );
|
33 |
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: wpcf7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 3.4.1
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2013 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.4.1' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.5' );
|
33 |
|