Contact Form 7 - Version 3.5.1

Version Description

  • Fixed: Submissions with array value cause PHP error.
  • Translation for Indian Bengali (bn_IN) has been created.
  • Translations for Spanish, Tagalog and Japanese have been updated.
Download this release

Release Info

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

Code changes from version 3.5 to 3.5.1

includes/classes.php CHANGED
@@ -596,12 +596,7 @@ class WPCF7_ContactForm {
596
  else
597
  $submitted = $this->posted_data[$tagname];
598
 
599
- $submitted = trim( $submitted );
600
-
601
- if ( is_array( $submitted ) )
602
- $replaced = join( ', ', $submitted );
603
- else
604
- $replaced = $submitted;
605
 
606
  if ( $html ) {
607
  $replaced = strip_tags( $replaced );
596
  else
597
  $submitted = $this->posted_data[$tagname];
598
 
599
+ $replaced = wpcf7_flat_join( $submitted );
 
 
 
 
 
600
 
601
  if ( $html ) {
602
  $replaced = strip_tags( $replaced );
includes/functions.php CHANGED
@@ -192,6 +192,7 @@ function wpcf7_l10n() {
192
  'he_IL' => __( 'Hebrew', 'wpcf7' ),
193
  'hi_IN' => __( 'Hindi', 'wpcf7' ),
194
  'hu_HU' => __( 'Hungarian', 'wpcf7' ),
 
195
  'id_ID' => __( 'Indonesian', 'wpcf7' ),
196
  'ga_IE' => __( 'Irish', 'wpcf7' ),
197
  'it_IT' => __( 'Italian', 'wpcf7' ),
@@ -286,6 +287,16 @@ function wpcf7_array_flatten( $input ) {
286
  return $output;
287
  }
288
 
 
 
 
 
 
 
 
 
 
 
289
  function wpcf7_support_html5() {
290
  return (bool) apply_filters( 'wpcf7_support_html5', true );
291
  }
192
  'he_IL' => __( 'Hebrew', 'wpcf7' ),
193
  'hi_IN' => __( 'Hindi', 'wpcf7' ),
194
  'hu_HU' => __( 'Hungarian', 'wpcf7' ),
195
+ 'bn_IN' => __( 'Indian Bengali', 'wpcf7' ),
196
  'id_ID' => __( 'Indonesian', 'wpcf7' ),
197
  'ga_IE' => __( 'Irish', 'wpcf7' ),
198
  'it_IT' => __( 'Italian', 'wpcf7' ),
287
  return $output;
288
  }
289
 
290
+ function wpcf7_flat_join( $input ) {
291
+ $input = wpcf7_array_flatten( $input );
292
+ $output = array();
293
+
294
+ foreach ( (array) $input as $value )
295
+ $output[] = trim( (string) $value );
296
+
297
+ return implode( ', ', $output );
298
+ }
299
+
300
  function wpcf7_support_html5() {
301
  return (bool) apply_filters( 'wpcf7_support_html5', true );
302
  }
includes/pipe.php CHANGED
@@ -8,10 +8,10 @@ class WPCF7_Pipe {
8
  function WPCF7_Pipe( $text ) {
9
  $pipe_pos = strpos( $text, '|' );
10
  if ( false === $pipe_pos ) {
11
- $this->before = $this->after = $text;
12
  } else {
13
- $this->before = substr( $text, 0, $pipe_pos );
14
- $this->after = substr( $text, $pipe_pos + 1 );
15
  }
16
  }
17
  }
8
  function WPCF7_Pipe( $text ) {
9
  $pipe_pos = strpos( $text, '|' );
10
  if ( false === $pipe_pos ) {
11
+ $this->before = $this->after = trim( $text );
12
  } else {
13
+ $this->before = trim( substr( $text, 0, $pipe_pos ) );
14
+ $this->after = trim( substr( $text, $pipe_pos + 1 ) );
15
  }
16
  }
17
  }
includes/shortcodes.php CHANGED
@@ -133,6 +133,9 @@ class WPCF7_ShortcodeManager {
133
  $scanned_tag['attr'] = $attr;
134
  }
135
 
 
 
 
136
  $content = trim( $m[5] );
137
  $content = preg_replace( "/<br[\r\n\t ]*\/?>$/m", '', $content );
138
  $scanned_tag['content'] = $content;
133
  $scanned_tag['attr'] = $attr;
134
  }
135
 
136
+ $scanned_tag['values'] = array_map( 'trim', $scanned_tag['values'] );
137
+ $scanned_tag['labels'] = array_map( 'trim', $scanned_tag['labels'] );
138
+
139
  $content = trim( $m[5] );
140
  $content = preg_replace( "/<br[\r\n\t ]*\/?>$/m", '', $content );
141
  $scanned_tag['content'] = $content;
languages/wpcf7-bn_IN.mo ADDED
Binary file
languages/wpcf7-es_ES.mo CHANGED
Binary file
languages/wpcf7-ja.mo CHANGED
Binary file
languages/wpcf7-tl.mo CHANGED
Binary file
languages/wpcf7.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-08-07 15:56+0900\n"
6
- "PO-Revision-Date: 2013-08-07 15:56+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c\n"
14
  "X-Poedit-Basepath: ../..\n"
15
  "Plural-Forms: nplurals=1; plural=0;\n"
16
- "X-Generator: Poedit 1.5.6\n"
17
  "X-Poedit-SearchPath-0: contact-form-7\n"
18
 
19
  #: contact-form-7/wp-contact-form-7.php:5
@@ -517,118 +517,122 @@ msgid "Hungarian"
517
  msgstr ""
518
 
519
  #: contact-form-7/includes/functions.php:195
520
- msgid "Indonesian"
521
  msgstr ""
522
 
523
  #: contact-form-7/includes/functions.php:196
524
- msgid "Irish"
525
  msgstr ""
526
 
527
  #: contact-form-7/includes/functions.php:197
528
- msgid "Italian"
529
  msgstr ""
530
 
531
  #: contact-form-7/includes/functions.php:198
532
- msgid "Japanese"
533
  msgstr ""
534
 
535
  #: contact-form-7/includes/functions.php:199
536
- msgid "Korean"
537
  msgstr ""
538
 
539
  #: contact-form-7/includes/functions.php:200
540
- msgid "Latvian"
541
  msgstr ""
542
 
543
  #: contact-form-7/includes/functions.php:201
544
- msgid "Lithuanian"
545
  msgstr ""
546
 
547
  #: contact-form-7/includes/functions.php:202
548
- msgid "Macedonian"
549
  msgstr ""
550
 
551
  #: contact-form-7/includes/functions.php:203
552
- msgid "Malay"
553
  msgstr ""
554
 
555
  #: contact-form-7/includes/functions.php:204
556
- msgid "Malayalam"
557
  msgstr ""
558
 
559
  #: contact-form-7/includes/functions.php:205
560
- msgid "Maltese"
561
  msgstr ""
562
 
563
  #: contact-form-7/includes/functions.php:206
564
- msgid "Norwegian"
565
  msgstr ""
566
 
567
  #: contact-form-7/includes/functions.php:207
568
- msgid "Persian"
569
  msgstr ""
570
 
571
  #: contact-form-7/includes/functions.php:208
572
- msgid "Polish"
573
  msgstr ""
574
 
575
  #: contact-form-7/includes/functions.php:209
576
- msgid "Portuguese"
577
  msgstr ""
578
 
579
  #: contact-form-7/includes/functions.php:210
580
- msgid "Russian"
581
  msgstr ""
582
 
583
  #: contact-form-7/includes/functions.php:211
584
- msgid "Romanian"
585
  msgstr ""
586
 
587
  #: contact-form-7/includes/functions.php:212
588
- msgid "Serbian"
589
  msgstr ""
590
 
591
  #: contact-form-7/includes/functions.php:213
592
- msgid "Sinhala"
593
  msgstr ""
594
 
595
  #: contact-form-7/includes/functions.php:214
596
- msgid "Slovak"
597
  msgstr ""
598
 
599
  #: contact-form-7/includes/functions.php:215
600
- msgid "Slovene"
601
  msgstr ""
602
 
603
  #: contact-form-7/includes/functions.php:216
604
- msgid "Spanish"
605
  msgstr ""
606
 
607
  #: contact-form-7/includes/functions.php:217
608
- msgid "Swedish"
609
  msgstr ""
610
 
611
  #: contact-form-7/includes/functions.php:218
612
- msgid "Tamil"
613
  msgstr ""
614
 
615
  #: contact-form-7/includes/functions.php:219
616
- msgid "Thai"
617
  msgstr ""
618
 
619
  #: contact-form-7/includes/functions.php:220
620
- msgid "Tagalog"
621
  msgstr ""
622
 
623
  #: contact-form-7/includes/functions.php:221
624
- msgid "Turkish"
625
  msgstr ""
626
 
627
  #: contact-form-7/includes/functions.php:222
628
- msgid "Ukrainian"
629
  msgstr ""
630
 
631
  #: contact-form-7/includes/functions.php:223
 
 
 
 
632
  msgid "Vietnamese"
633
  msgstr ""
634
 
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-08-09 16:36+0900\n"
6
+ "PO-Revision-Date: 2013-08-09 16:36+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c\n"
14
  "X-Poedit-Basepath: ../..\n"
15
  "Plural-Forms: nplurals=1; plural=0;\n"
16
+ "X-Generator: Poedit 1.5.7\n"
17
  "X-Poedit-SearchPath-0: contact-form-7\n"
18
 
19
  #: contact-form-7/wp-contact-form-7.php:5
517
  msgstr ""
518
 
519
  #: contact-form-7/includes/functions.php:195
520
+ msgid "Indian Bengali"
521
  msgstr ""
522
 
523
  #: contact-form-7/includes/functions.php:196
524
+ msgid "Indonesian"
525
  msgstr ""
526
 
527
  #: contact-form-7/includes/functions.php:197
528
+ msgid "Irish"
529
  msgstr ""
530
 
531
  #: contact-form-7/includes/functions.php:198
532
+ msgid "Italian"
533
  msgstr ""
534
 
535
  #: contact-form-7/includes/functions.php:199
536
+ msgid "Japanese"
537
  msgstr ""
538
 
539
  #: contact-form-7/includes/functions.php:200
540
+ msgid "Korean"
541
  msgstr ""
542
 
543
  #: contact-form-7/includes/functions.php:201
544
+ msgid "Latvian"
545
  msgstr ""
546
 
547
  #: contact-form-7/includes/functions.php:202
548
+ msgid "Lithuanian"
549
  msgstr ""
550
 
551
  #: contact-form-7/includes/functions.php:203
552
+ msgid "Macedonian"
553
  msgstr ""
554
 
555
  #: contact-form-7/includes/functions.php:204
556
+ msgid "Malay"
557
  msgstr ""
558
 
559
  #: contact-form-7/includes/functions.php:205
560
+ msgid "Malayalam"
561
  msgstr ""
562
 
563
  #: contact-form-7/includes/functions.php:206
564
+ msgid "Maltese"
565
  msgstr ""
566
 
567
  #: contact-form-7/includes/functions.php:207
568
+ msgid "Norwegian"
569
  msgstr ""
570
 
571
  #: contact-form-7/includes/functions.php:208
572
+ msgid "Persian"
573
  msgstr ""
574
 
575
  #: contact-form-7/includes/functions.php:209
576
+ msgid "Polish"
577
  msgstr ""
578
 
579
  #: contact-form-7/includes/functions.php:210
580
+ msgid "Portuguese"
581
  msgstr ""
582
 
583
  #: contact-form-7/includes/functions.php:211
584
+ msgid "Russian"
585
  msgstr ""
586
 
587
  #: contact-form-7/includes/functions.php:212
588
+ msgid "Romanian"
589
  msgstr ""
590
 
591
  #: contact-form-7/includes/functions.php:213
592
+ msgid "Serbian"
593
  msgstr ""
594
 
595
  #: contact-form-7/includes/functions.php:214
596
+ msgid "Sinhala"
597
  msgstr ""
598
 
599
  #: contact-form-7/includes/functions.php:215
600
+ msgid "Slovak"
601
  msgstr ""
602
 
603
  #: contact-form-7/includes/functions.php:216
604
+ msgid "Slovene"
605
  msgstr ""
606
 
607
  #: contact-form-7/includes/functions.php:217
608
+ msgid "Spanish"
609
  msgstr ""
610
 
611
  #: contact-form-7/includes/functions.php:218
612
+ msgid "Swedish"
613
  msgstr ""
614
 
615
  #: contact-form-7/includes/functions.php:219
616
+ msgid "Tamil"
617
  msgstr ""
618
 
619
  #: contact-form-7/includes/functions.php:220
620
+ msgid "Thai"
621
  msgstr ""
622
 
623
  #: contact-form-7/includes/functions.php:221
624
+ msgid "Tagalog"
625
  msgstr ""
626
 
627
  #: contact-form-7/includes/functions.php:222
628
+ msgid "Turkish"
629
  msgstr ""
630
 
631
  #: contact-form-7/includes/functions.php:223
632
+ msgid "Ukrainian"
633
+ msgstr ""
634
+
635
+ #: contact-form-7/includes/functions.php:224
636
  msgid "Vietnamese"
637
  msgstr ""
638
 
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.6
7
- Stable tag: 3.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -62,6 +62,7 @@ The following are other recommended plugins by the author of Contact Form 7.
62
  * Hebrew (he_IL) - [Yaron Ofer](http://www.gadgetguru.co.il/), [Arik Galansky](http://www.arikg.co.il/)
63
  * Hindi (hi_IN) - [Tarun Joshi](http://www.readers-cafe.net/), [Ashish](http://outshinesolutions.com/)
64
  * Hungarian (hu_HU) - [Andras Hirschler](http://hia.itblog.hu/), [János Csárdi-Braunstein](http://blogocska.org/), [Farkas Győző](http://www.sakraft.hu/)
 
65
  * Indonesian (Bahasa Indonesia; id_ID) - [Hendry Lee](http://blogbuildingu.com/), [Belajar Seo Indonesia](http://dhany.web.id/panduan-seo)
66
  * Irish (ga_IE) - [Vikas Arora](http://www.wiznicworld.com/)
67
  * Italian (it_IT) - [Bruno](http://www.brunosalzano.com), [Gianni Diurno](http://gidibao.net/)
@@ -83,9 +84,9 @@ The following are other recommended plugins by the author of Contact Form 7.
83
  * Sinhala (si_LK) - [Nitin Aggarwal](http://offshoreally.com/)
84
  * Slovak (sk_SK) - [Patrik Bóna](http://www.mrhead.sk/), [WordPress Slovakia](http://wp.sk/)
85
  * Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net), Jani Roskar
86
- * 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/)
87
  * Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
88
- * Tagalog (tl) - [Rupert Agnew Lanuza](http://www.rupertlanuza.com/), [Hanne](http://pointen.dk/)
89
  * Tamil (ta) - [Nitin Aggarwal](http://offshoreally.com/)
90
  * Thai (th) - [ToshiK](http://www.tuntikorn.com/), [kazama](http://blog.wordthai.com/)
91
  * Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com), [Hasan Yılmaz](http://hedefturkce.com/), [Emin Buğra Saral](http://www.rahmetli.info/), Burak Yavuz
@@ -119,6 +120,12 @@ Do you have questions or issues with Contact Form 7? Use these support channels
119
 
120
  == Changelog ==
121
 
 
 
 
 
 
 
122
  = 3.5 =
123
 
124
  * Added: Support of local file attachment.
4
  Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
5
  Requires at least: 3.5
6
  Tested up to: 3.6
7
+ Stable tag: 3.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
62
  * Hebrew (he_IL) - [Yaron Ofer](http://www.gadgetguru.co.il/), [Arik Galansky](http://www.arikg.co.il/)
63
  * Hindi (hi_IN) - [Tarun Joshi](http://www.readers-cafe.net/), [Ashish](http://outshinesolutions.com/)
64
  * Hungarian (hu_HU) - [Andras Hirschler](http://hia.itblog.hu/), [János Csárdi-Braunstein](http://blogocska.org/), [Farkas Győző](http://www.sakraft.hu/)
65
+ * Indian Bengali (bn_IN) - [Suman Manna](http://www.gwebpro.com/)
66
  * Indonesian (Bahasa Indonesia; id_ID) - [Hendry Lee](http://blogbuildingu.com/), [Belajar Seo Indonesia](http://dhany.web.id/panduan-seo)
67
  * Irish (ga_IE) - [Vikas Arora](http://www.wiznicworld.com/)
68
  * Italian (it_IT) - [Bruno](http://www.brunosalzano.com), [Gianni Diurno](http://gidibao.net/)
84
  * Sinhala (si_LK) - [Nitin Aggarwal](http://offshoreally.com/)
85
  * Slovak (sk_SK) - [Patrik Bóna](http://www.mrhead.sk/), [WordPress Slovakia](http://wp.sk/)
86
  * Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net), Jani Roskar
87
+ * 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/), [Lourdes Cuesta](http://www.morote.net)
88
  * Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
89
+ * Tagalog (tl) - [Rupert Agnew Lanuza](http://www.rupertlanuza.com/), [Hanne](http://pointen.dk/), [Language Connect](http://www.languageconnect.net/)
90
  * Tamil (ta) - [Nitin Aggarwal](http://offshoreally.com/)
91
  * Thai (th) - [ToshiK](http://www.tuntikorn.com/), [kazama](http://blog.wordthai.com/)
92
  * Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com), [Hasan Yılmaz](http://hedefturkce.com/), [Emin Buğra Saral](http://www.rahmetli.info/), Burak Yavuz
120
 
121
  == Changelog ==
122
 
123
+ = 3.5.1 =
124
+
125
+ * Fixed: Submissions with array value cause PHP error.
126
+ * Translation for Indian Bengali (bn_IN) has been created.
127
+ * Translations for Spanish, Tagalog and Japanese have been updated.
128
+
129
  = 3.5 =
130
 
131
  * Added: Support of local file attachment.
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.5
11
  */
12
 
13
  /* Copyright 2007-2013 Takayuki Miyoshi (email: takayukister at gmail.com)
@@ -27,7 +27,7 @@ Version: 3.5
27
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
  */
29
 
30
- define( 'WPCF7_VERSION', '3.5' );
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.5.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.5.1' );
31
 
32
  define( 'WPCF7_REQUIRED_WP_VERSION', '3.5' );
33