Contact Form 7 - Version 4.0.2

Version Description

  • Introduced wpcf7_build_query() to correctly apply urlencode to keys and values in URL queries.
  • Translations for Portuguese, Spanish, Hungarian, and German have been updated.
Download this release

Release Info

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

Code changes from version 4.0.1 to 4.0.2

admin/includes/class-contact-forms-list-table.php CHANGED
@@ -109,7 +109,7 @@ class WPCF7_Contact_Form_List_Table extends WP_List_Table {
109
'wpcf7-copy-contact-form_' . absint( $item->id() ) );
110
111
$actions = array_merge( $actions, array(
112
- 'copy' => '<a href="' . $copy_link . '">' . __( 'Copy', 'contact-form-7' ) . '</a>' ) );
113
}
114
115
$a = sprintf( '<a class="row-title" href="%1$s" title="%2$s">%3$s</a>',
109
'wpcf7-copy-contact-form_' . absint( $item->id() ) );
110
111
$actions = array_merge( $actions, array(
112
+ 'copy' => '<a href="' . $copy_link . '">' . __( 'Duplicate', 'contact-form-7' ) . '</a>' ) );
113
}
114
115
$a = sprintf( '<a class="row-title" href="%1$s" title="%2$s">%3$s</a>',
admin/includes/meta-boxes.php CHANGED
@@ -24,7 +24,11 @@ function wpcf7_mail_meta_box( $post, $box ) {
24
'use' => null ) );
25
26
$id = esc_attr( $args['id'] );
27
- $mail = $post->prop( $args['name'] );
28
29
if ( ! empty( $args['use'] ) ) :
30
?>
24
'use' => null ) );
25
26
$id = esc_attr( $args['id'] );
27
+
28
+ $mail = wp_parse_args( $post->prop( $args['name'] ), array(
29
+ 'active' => false, 'recipient' => '', 'sender' => '',
30
+ 'subject' => '', 'body' => '', 'additional_headers' => '',
31
+ 'attachments' => '', 'use_html' => false, 'exclude_blank' => false ) );
32
33
if ( ! empty( $args['use'] ) ) :
34
?>
includes/functions.php CHANGED
@@ -389,4 +389,32 @@ function wpcf7_rmdir_p( $dir ) {
389
return @rmdir( $dir );
390
}
391
392
?>
389
return @rmdir( $dir );
390
}
391
392
+ /* From _http_build_query in wp-includes/functions.php */
393
+ function wpcf7_build_query( $args, $key = '' ) {
394
+ $sep = '&';
395
+ $ret = array();
396
+
397
+ foreach ( (array) $args as $k => $v ) {
398
+ $k = urlencode( $k );
399
+
400
+ if ( ! empty( $key ) ) {
401
+ $k = $key . '%5B' . $k . '%5D';
402
+ }
403
+
404
+ if ( null === $v ) {
405
+ continue;
406
+ } elseif ( false === $v ) {
407
+ $v = '0';
408
+ }
409
+
410
+ if ( is_array( $v ) || is_object( $v ) ) {
411
+ array_push( $ret, wpcf7_build_query( $v, $k ) );
412
+ } else {
413
+ array_push( $ret, $k . '=' . urlencode( $v ) );
414
+ }
415
+ }
416
+
417
+ return implode( $sep, $ret );
418
+ }
419
+
420
?>
languages/contact-form-7-de_DE.mo CHANGED
Binary file
languages/contact-form-7-es_ES.mo CHANGED
Binary file
languages/contact-form-7-hu_HU.mo CHANGED
Binary file
languages/contact-form-7-ja.mo CHANGED
Binary file
languages/contact-form-7-pt_PT.mo CHANGED
Binary file
languages/contact-form-7.pot CHANGED
@@ -2,14 +2,14 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: Contact Form 7\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-10-13 14:52+0900\n"
6
- "PO-Revision-Date: 2014-10-13 14:53+0900\n"
7
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
"Language-Team: \n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-SourceCharset: utf-8\n"
13
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c\n"
14
"X-Poedit-Basepath: ../..\n"
15
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -274,6 +274,7 @@ msgid "Save"
274
msgstr ""
275
276
#: contact-form-7/admin/edit-contact-form.php:68
277
msgid "Duplicate"
278
msgstr ""
279
@@ -309,10 +310,6 @@ msgstr ""
309
msgid "Edit"
310
msgstr ""
311
312
- #: contact-form-7/admin/includes/class-contact-forms-list-table.php:112
313
- msgid "Copy"
314
- msgstr ""
315
-
316
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:117
317
#, php-format
318
msgid "Edit &#8220;%s&#8221;"
@@ -331,130 +328,130 @@ msgstr ""
331
msgid "Y/m/d"
332
msgstr ""
333
334
- #: contact-form-7/admin/includes/meta-boxes.php:43
335
msgid "To:"
336
msgstr ""
337
338
- #: contact-form-7/admin/includes/meta-boxes.php:48
339
msgid "From:"
340
msgstr ""
341
342
- #: contact-form-7/admin/includes/meta-boxes.php:53
343
msgid "Subject:"
344
msgstr ""
345
346
- #: contact-form-7/admin/includes/meta-boxes.php:60
347
msgid "Additional headers:"
348
msgstr ""
349
350
- #: contact-form-7/admin/includes/meta-boxes.php:65
351
msgid "File attachments:"
352
msgstr ""
353
354
- #: contact-form-7/admin/includes/meta-boxes.php:73
355
msgid "Use HTML content type"
356
msgstr ""
357
358
- #: contact-form-7/admin/includes/meta-boxes.php:79
359
msgid "Message body:"
360
msgstr ""
361
362
- #: contact-form-7/admin/includes/meta-boxes.php:85
363
msgid "Exclude lines with blank mail-tags from output"
364
msgstr ""
365
366
- #: contact-form-7/includes/contact-form-template.php:15
367
msgid "Your Name"
368
msgstr ""
369
370
- #: contact-form-7/includes/contact-form-template.php:16
371
- #: contact-form-7/includes/contact-form-template.php:19
372
msgid "(required)"
373
msgstr ""
374
375
- #: contact-form-7/includes/contact-form-template.php:18
376
msgid "Your Email"
377
msgstr ""
378
379
- #: contact-form-7/includes/contact-form-template.php:21
380
msgid "Subject"
381
msgstr ""
382
383
- #: contact-form-7/includes/contact-form-template.php:23
384
msgid "Your Message"
385
msgstr ""
386
387
- #: contact-form-7/includes/contact-form-template.php:25
388
#: contact-form-7/modules/submit.php:28
389
msgid "Send"
390
msgstr ""
391
392
- #: contact-form-7/includes/contact-form-template.php:35
393
#, php-format
394
msgid "From: %s"
395
msgstr ""
396
397
- #: contact-form-7/includes/contact-form-template.php:37
398
#, php-format
399
msgid "Subject: %s"
400
msgstr ""
401
402
- #: contact-form-7/includes/contact-form-template.php:39
403
- #: contact-form-7/includes/contact-form-template.php:60
404
msgid "Message Body:"
405
msgstr ""
406
407
- #: contact-form-7/includes/contact-form-template.php:42
408
- #: contact-form-7/includes/contact-form-template.php:63
409
#, php-format
410
msgid "This e-mail was sent from a contact form on %1$s (%2$s)"
411
msgstr ""
412
413
- #: contact-form-7/includes/contact-form-template.php:109
414
msgid "Sender's message was sent successfully"
415
msgstr ""
416
417
- #: contact-form-7/includes/contact-form-template.php:111
418
msgid "Your message was sent successfully. Thanks."
419
msgstr ""
420
421
- #: contact-form-7/includes/contact-form-template.php:116
422
msgid "Sender's message was failed to send"
423
msgstr ""
424
425
- #: contact-form-7/includes/contact-form-template.php:118
426
- #: contact-form-7/includes/contact-form-template.php:132
427
msgid ""
428
"Failed to send your message. Please try later or contact the administrator "
429
"by another method."
430
msgstr ""
431
432
- #: contact-form-7/includes/contact-form-template.php:123
433
msgid "Validation errors occurred"
434
msgstr ""
435
436
- #: contact-form-7/includes/contact-form-template.php:125
437
msgid ""
438
"Validation errors occurred. Please confirm the fields and submit it again."
439
msgstr ""
440
441
- #: contact-form-7/includes/contact-form-template.php:130
442
msgid "Submission was referred to as spam"
443
msgstr ""
444
445
- #: contact-form-7/includes/contact-form-template.php:137
446
msgid "There are terms that the sender must accept"
447
msgstr ""
448
449
- #: contact-form-7/includes/contact-form-template.php:139
450
msgid "Please accept the terms to proceed."
451
msgstr ""
452
453
- #: contact-form-7/includes/contact-form-template.php:144
454
msgid "There is a field that the sender must fill in"
455
msgstr ""
456
457
- #: contact-form-7/includes/contact-form-template.php:146
458
msgid "Please fill the required field."
459
msgstr ""
460
2
msgstr ""
3
"Project-Id-Version: Contact Form 7\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-11-23 19:55+0900\n"
6
+ "PO-Revision-Date: 2014-11-23 19:56+0900\n"
7
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
"Language-Team: \n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-SourceCharset: UTF-8\n"
13
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c\n"
14
"X-Poedit-Basepath: ../..\n"
15
"Plural-Forms: nplurals=1; plural=0;\n"
274
msgstr ""
275
276
#: contact-form-7/admin/edit-contact-form.php:68
277
+ #: contact-form-7/admin/includes/class-contact-forms-list-table.php:112
278
msgid "Duplicate"
279
msgstr ""
280
310
msgid "Edit"
311
msgstr ""
312
313
#: contact-form-7/admin/includes/class-contact-forms-list-table.php:117
314
#, php-format
315
msgid "Edit &#8220;%s&#8221;"
328
msgid "Y/m/d"
329
msgstr ""
330
331
+ #: contact-form-7/admin/includes/meta-boxes.php:47
332
msgid "To:"
333
msgstr ""
334
335
+ #: contact-form-7/admin/includes/meta-boxes.php:52
336
msgid "From:"
337
msgstr ""
338
339
+ #: contact-form-7/admin/includes/meta-boxes.php:57
340
msgid "Subject:"
341
msgstr ""
342
343
+ #: contact-form-7/admin/includes/meta-boxes.php:64
344
msgid "Additional headers:"
345
msgstr ""
346
347
+ #: contact-form-7/admin/includes/meta-boxes.php:69
348
msgid "File attachments:"
349
msgstr ""
350
351
+ #: contact-form-7/admin/includes/meta-boxes.php:77
352
msgid "Use HTML content type"
353
msgstr ""
354
355
+ #: contact-form-7/admin/includes/meta-boxes.php:83
356
msgid "Message body:"
357
msgstr ""
358
359
+ #: contact-form-7/admin/includes/meta-boxes.php:89
360
msgid "Exclude lines with blank mail-tags from output"
361
msgstr ""
362
363
+ #: contact-form-7/includes/contact-form-template.php:23
364
msgid "Your Name"
365
msgstr ""
366
367
+ #: contact-form-7/includes/contact-form-template.php:24
368
+ #: contact-form-7/includes/contact-form-template.php:27
369
msgid "(required)"
370
msgstr ""
371
372
+ #: contact-form-7/includes/contact-form-template.php:26
373
msgid "Your Email"
374
msgstr ""
375
376
+ #: contact-form-7/includes/contact-form-template.php:29
377
msgid "Subject"
378
msgstr ""
379
380
+ #: contact-form-7/includes/contact-form-template.php:31
381
msgid "Your Message"
382
msgstr ""
383
384
+ #: contact-form-7/includes/contact-form-template.php:33
385
#: contact-form-7/modules/submit.php:28
386
msgid "Send"
387
msgstr ""
388
389
+ #: contact-form-7/includes/contact-form-template.php:43
390
#, php-format
391
msgid "From: %s"
392
msgstr ""
393
394
+ #: contact-form-7/includes/contact-form-template.php:45
395
#, php-format
396
msgid "Subject: %s"
397
msgstr ""
398
399
+ #: contact-form-7/includes/contact-form-template.php:47
400
+ #: contact-form-7/includes/contact-form-template.php:68
401
msgid "Message Body:"
402
msgstr ""
403
404
+ #: contact-form-7/includes/contact-form-template.php:50
405
+ #: contact-form-7/includes/contact-form-template.php:71
406
#, php-format
407
msgid "This e-mail was sent from a contact form on %1$s (%2$s)"
408
msgstr ""
409
410
+ #: contact-form-7/includes/contact-form-template.php:117
411
msgid "Sender's message was sent successfully"
412
msgstr ""
413
414
+ #: contact-form-7/includes/contact-form-template.php:119
415
msgid "Your message was sent successfully. Thanks."
416
msgstr ""
417
418
+ #: contact-form-7/includes/contact-form-template.php:124
419
msgid "Sender's message was failed to send"
420
msgstr ""
421
422
+ #: contact-form-7/includes/contact-form-template.php:126
423
+ #: contact-form-7/includes/contact-form-template.php:140
424
msgid ""
425
"Failed to send your message. Please try later or contact the administrator "
426
"by another method."
427
msgstr ""
428
429
+ #: contact-form-7/includes/contact-form-template.php:131
430
msgid "Validation errors occurred"
431
msgstr ""
432
433
+ #: contact-form-7/includes/contact-form-template.php:133
434
msgid ""
435
"Validation errors occurred. Please confirm the fields and submit it again."
436
msgstr ""
437
438
+ #: contact-form-7/includes/contact-form-template.php:138
439
msgid "Submission was referred to as spam"
440
msgstr ""
441
442
+ #: contact-form-7/includes/contact-form-template.php:145
443
msgid "There are terms that the sender must accept"
444
msgstr ""
445
446
+ #: contact-form-7/includes/contact-form-template.php:147
447
msgid "Please accept the terms to proceed."
448
msgstr ""
449
450
+ #: contact-form-7/includes/contact-form-template.php:152
451
msgid "There is a field that the sender must fill in"
452
msgstr ""
453
454
+ #: contact-form-7/includes/contact-form-template.php:154
455
msgid "Please fill the required field."
456
msgstr ""
457
modules/akismet.php CHANGED
@@ -118,11 +118,7 @@ function wpcf7_akismet_comment_check( $comment ) {
118
global $akismet_api_host, $akismet_api_port;
119
120
$spam = false;
121
- $query_string = '';
122
-
123
- foreach ( $comment as $key => $data ) {
124
- $query_string .= $key . '=' . urlencode( wp_unslash( (string) $data ) ) . '&';
125
- }
126
127
if ( is_callable( array( 'Akismet', 'http_post' ) ) ) { // Akismet v3.0+
128
$response = Akismet::http_post( $query_string, 'comment-check' );
118
global $akismet_api_host, $akismet_api_port;
119
120
$spam = false;
121
+ $query_string = wpcf7_build_query( $comment );
122
123
if ( is_callable( array( 'Akismet', 'http_post' ) ) ) { // Akismet v3.0+
124
$response = Akismet::http_post( $query_string, 'comment-check' );
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: takayukister
3
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.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -87,7 +87,7 @@ The following are other recommended plugins by the author of Contact Form 7.
87
* Sinhala (si_LK) - Nitin Aggarwal
88
* Slovak (sk_SK) - Patrik Bóna, WordPress Slovakia
89
* Slovene (sl_SI) - Mihael Simonič, Jani Roskar
90
- * Spanish (es_ES) - Jordi Sancho, Vladimir Prieto, Federico Mikaelian, Matias Baldanza, Carlos Agnese, Lourdes Cuesta
91
* Swedish (sv_SE) - Fredrik Jonsson, the Swedish community
92
* Tagalog (tl) - Rupert Agnew Lanuza, Hanne, Language Connect
93
* Tamil (ta) - Nitin Aggarwal
@@ -125,6 +125,11 @@ 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.1 =
129
130
* Fixed a bug that caused an error when creating new contact forms in some environment.
3
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.1
7
+ Stable tag: 4.0.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
87
* Sinhala (si_LK) - Nitin Aggarwal
88
* Slovak (sk_SK) - Patrik Bóna, WordPress Slovakia
89
* Slovene (sl_SI) - Mihael Simonič, Jani Roskar
90
+ * Spanish (es_ES) - Jordi Sancho, Vladimir Prieto, Federico Mikaelian, Matias Baldanza, Carlos Agnese, Lourdes Cuesta, Carlos Oropesa
91
* Swedish (sv_SE) - Fredrik Jonsson, the Swedish community
92
* Tagalog (tl) - Rupert Agnew Lanuza, Hanne, Language Connect
93
* Tamil (ta) - Nitin Aggarwal
125
126
For more information, see [Releases](http://contactform7.com/category/releases/).
127
128
+ = 4.0.2 =
129
+
130
+ * Introduced wpcf7_build_query() to correctly apply urlencode to keys and values in URL queries.
131
+ * Translations for Portuguese, Spanish, Hungarian, and German have been updated.
132
+
133
= 4.0.1 =
134
135
* Fixed a bug that caused an error when creating new contact forms in some environment.
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.1
11
*/
12
13
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
@@ -27,7 +27,7 @@ Version: 4.0.1
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
7
Author URI: http://ideasilo.wordpress.com/
8
Text Domain: contact-form-7
9
Domain Path: /languages/
10
+ Version: 4.0.2
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.2' );
31
32
define( 'WPCF7_REQUIRED_WP_VERSION', '3.9' );
33