Contact Form 7 - Version 4.0.1

Version Description

  • Fixed a bug that caused an error when creating new contact forms in some environment.
  • Translations for Portuguese and Croatian have been updated.
Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 4.0.1
Comparing to
See all releases

Code changes from version 4.0 to 4.0.1

includes/contact-form-template.php CHANGED
@@ -3,9 +3,17 @@
3
class WPCF7_ContactFormTemplate {
4
5
public static function get_default( $prop = 'form' ) {
6
- $prop = preg_replace( '/[^a-z0-9_]/', '', $prop );
7
- $callback = 'self::' . $prop;
8
- $template = is_callable( $callback ) ? call_user_func( $callback ) : null;
9
10
return apply_filters( 'wpcf7_default_template', $template, $prop );
11
}
3
class WPCF7_ContactFormTemplate {
4
5
public static function get_default( $prop = 'form' ) {
6
+ if ( 'form' == $prop ) {
7
+ $template = self::form();
8
+ } elseif ( 'mail' == $prop ) {
9
+ $template = self::mail();
10
+ } elseif ( 'mail_2' == $prop ) {
11
+ $template = self::mail_2();
12
+ } elseif ( 'messages' == $prop ) {
13
+ $template = self::messages();
14
+ } else {
15
+ $template = null;
16
+ }
17
18
return apply_filters( 'wpcf7_default_template', $template, $prop );
19
}
languages/contact-form-7-hr.mo CHANGED
Binary file
languages/contact-form-7-pt_PT.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.9
6
Tested up to: 4.0
7
- Stable tag: 4.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -46,7 +46,7 @@ The following are other recommended plugins by the author of Contact Form 7.
46
* Central Kurdish (ckb) - Mahr Hassan
47
* Chinese (China; zh_CN) - Soz, Keefe Dunn, Stella Hu
48
* Chinese (Taiwan; zh_TW) - James Wu
49
- * Croatian (hr) - tolingo Translation Services
50
* Czech (cs_CZ) - Korry, Radovan Fiser, Tomas Vesely, Pavel Bilek, Vladislav Šenk
51
* Danish (da_DK) - Jens Griebel, Georg S. Adamsen
52
* Dutch (nl_NL) - Chris Devriese, Martin Hein, Rene, TenSheep, Tim de Hoog
@@ -125,39 +125,13 @@ Do you have questions or issues with Contact Form 7? Use these support channels
125
126
For more information, see [Releases](http://contactform7.com/category/releases/).
127
128
= 4.0 =
129
130
* The default mail template changed (see [Best Practice to Set Up Mail](http://contactform7.com/best-practice-to-set-up-mail/)).
131
* Translations for Slovak, German, Turkish and Portuguese have been updated.
132
* WordPress 3.9 or higher is required.
133
-
134
- = 3.9.3 =
135
-
136
- * Fixed: file uploading was disabled in some of server environments because of wrong use of mt_rand() function.
137
- * Translations for Hungarian has been updated.
138
-
139
- = 3.9.2 =
140
-
141
- * Fixed: incorrect behavior seen in demo mode.
142
- * Fixed: Flamingo saved submitter's contact info even when the submission was spam.
143
- * New: introduce wpcf7_skip_mail filter.
144
- * Enhancement: add a random-named directory to each uploaded file's temporary file path in order to make the path harder for a submitter to guess.
145
- * Translation for Punjabi has been created.
146
- * Translations for Turkish, Korean and Slovak have been updated.
147
-
148
- = 3.9.1 =
149
-
150
- * Fix: options with empty values didn't work correctly in a drop-down menu.
151
- * Fix: broke layout of input fields after validation by an incorrect jQuery use.
152
- * Fix: couldn't enqueue JavaScript manually with wpcf7_enqueue_scripts() when WPCF7_LOAD_JS was false.
153
- * Fix: couldn't enqueue CSS manually with wpcf7_enqueue_styles() when WPCF7_LOAD_CSS was false.
154
- * Translations for Greek and Hungarian have been updated.
155
-
156
- = 3.9 =
157
-
158
- * 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/).
159
- * The exclude_blank mail option has been introduced.
160
- * The wpcf7_load_js and wpcf7_load_css (functions and filter hooks) have been introduced.
161
- * The jQuery Form Plugin (jquery.form.js) has been updated to 3.51.0.
162
- * Translations for Persian and Slovak have been updated.
163
- * WordPress 3.8 or higher is required.
4
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
5
Requires at least: 3.9
6
Tested up to: 4.0
7
+ Stable tag: 4.0.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
46
* Central Kurdish (ckb) - Mahr Hassan
47
* Chinese (China; zh_CN) - Soz, Keefe Dunn, Stella Hu
48
* Chinese (Taiwan; zh_TW) - James Wu
49
+ * Croatian (hr) - tolingo Translation Services, Marko Puskaric
50
* Czech (cs_CZ) - Korry, Radovan Fiser, Tomas Vesely, Pavel Bilek, Vladislav Šenk
51
* Danish (da_DK) - Jens Griebel, Georg S. Adamsen
52
* Dutch (nl_NL) - Chris Devriese, Martin Hein, Rene, TenSheep, Tim de Hoog
125
126
For more information, see [Releases](http://contactform7.com/category/releases/).
127
128
+ = 4.0.1 =
129
+
130
+ * Fixed a bug that caused an error when creating new contact forms in some environment.
131
+ * Translations for Portuguese and Croatian have been updated.
132
+
133
= 4.0 =
134
135
* The default mail template changed (see [Best Practice to Set Up Mail](http://contactform7.com/best-practice-to-set-up-mail/)).
136
* Translations for Slovak, German, Turkish and Portuguese have been updated.
137
* WordPress 3.9 or higher is required.
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: 4.0
11
*/
12
13
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
@@ -27,7 +27,7 @@ Version: 4.0
27
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
*/
29
30
- define( 'WPCF7_VERSION', '4.0' );
31
32
define( 'WPCF7_REQUIRED_WP_VERSION', '3.9' );
33
7
Author URI: http://ideasilo.wordpress.com/
8
Text Domain: contact-form-7
9
Domain Path: /languages/
10
+ Version: 4.0.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', '4.0.1' );
31
32
define( 'WPCF7_REQUIRED_WP_VERSION', '3.9' );
33