Contact Form 7 - Version 2.4.3

Version Description

  • Translation for Armenian has been created by Emmanuelle Traduction.
  • Translation for Tamil has been created by Nitin Aggarwal.
  • Translations for German (Ivan Graf), Dutch (Rene), Arabic (Yaser Mohammed) and Romanian (Anunturi Jibo) have been updated.
  • Bundled jquery.form has been updated to 2.52.
Download this release

Release Info

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

Code changes from version 2.4.2 to 2.4.3

admin/admin.php CHANGED
@@ -333,7 +333,7 @@ function wpcf7_updated_message( &$contact_form ) {
333
  <?php
334
  }
335
 
336
- // add_action( 'wpcf7_admin_before_subsubsub', 'wpcf7_donation_link' );
337
 
338
  function wpcf7_donation_link( &$contact_form ) {
339
  if ( ! WPCF7_SHOW_DONATION_LINK )
333
  <?php
334
  }
335
 
336
+ add_action( 'wpcf7_admin_before_subsubsub', 'wpcf7_donation_link' );
337
 
338
  function wpcf7_donation_link( &$contact_form ) {
339
  if ( ! WPCF7_SHOW_DONATION_LINK )
includes/classes.php CHANGED
@@ -117,10 +117,12 @@ class WPCF7_ContactForm {
117
  if ( ! $this->is_posted() )
118
  return '';
119
 
120
- if ( ! isset( $_POST['_wpcf7_validation_errors'] ) )
121
  return '';
122
 
123
- if ( $ve = trim( $_POST['_wpcf7_validation_errors']['messages'][$name] ) ) {
 
 
124
  $ve = '<span class="wpcf7-not-valid-tip-no-ajax">' . esc_html( $ve ) . '</span>';
125
  return apply_filters( 'wpcf7_validation_error', $ve, $name, $this );
126
  }
@@ -164,27 +166,31 @@ class WPCF7_ContactForm {
164
 
165
  for ( $i = 0, $size = count( $scanned ); $i < $size; $i++ ) {
166
 
167
- if ( is_string( $cond['type'] ) && ! empty( $cond['type'] ) ) {
168
- if ( $scanned[$i]['type'] != $cond['type'] ) {
169
- unset( $scanned[$i] );
170
- continue;
171
- }
172
- } elseif ( is_array( $cond['type'] ) ) {
173
- if ( ! in_array( $scanned[$i]['type'], $cond['type'] ) ) {
174
- unset( $scanned[$i] );
175
- continue;
 
 
176
  }
177
  }
178
 
179
- if ( is_string( $cond['name'] ) && ! empty( $cond['name'] ) ) {
180
- if ( $scanned[$i]['name'] != $cond['name'] ) {
181
- unset ( $scanned[$i] );
182
- continue;
183
- }
184
- } elseif ( is_array( $cond['name'] ) ) {
185
- if ( ! in_array( $scanned[$i]['name'], $cond['name'] ) ) {
186
- unset( $scanned[$i] );
187
- continue;
 
 
188
  }
189
  }
190
  }
117
  if ( ! $this->is_posted() )
118
  return '';
119
 
120
+ if ( ! isset( $_POST['_wpcf7_validation_errors']['messages'][$name] ) )
121
  return '';
122
 
123
+ $ve = trim( $_POST['_wpcf7_validation_errors']['messages'][$name] );
124
+
125
+ if ( ! empty( $ve ) ) {
126
  $ve = '<span class="wpcf7-not-valid-tip-no-ajax">' . esc_html( $ve ) . '</span>';
127
  return apply_filters( 'wpcf7_validation_error', $ve, $name, $this );
128
  }
166
 
167
  for ( $i = 0, $size = count( $scanned ); $i < $size; $i++ ) {
168
 
169
+ if ( isset( $cond['type'] ) ) {
170
+ if ( is_string( $cond['type'] ) && ! empty( $cond['type'] ) ) {
171
+ if ( $scanned[$i]['type'] != $cond['type'] ) {
172
+ unset( $scanned[$i] );
173
+ continue;
174
+ }
175
+ } elseif ( is_array( $cond['type'] ) ) {
176
+ if ( ! in_array( $scanned[$i]['type'], $cond['type'] ) ) {
177
+ unset( $scanned[$i] );
178
+ continue;
179
+ }
180
  }
181
  }
182
 
183
+ if ( isset( $cond['name'] ) ) {
184
+ if ( is_string( $cond['name'] ) && ! empty( $cond['name'] ) ) {
185
+ if ( $scanned[$i]['name'] != $cond['name'] ) {
186
+ unset ( $scanned[$i] );
187
+ continue;
188
+ }
189
+ } elseif ( is_array( $cond['name'] ) ) {
190
+ if ( ! in_array( $scanned[$i]['name'], $cond['name'] ) ) {
191
+ unset( $scanned[$i] );
192
+ continue;
193
+ }
194
  }
195
  }
196
  }
includes/controller.php CHANGED
@@ -250,7 +250,7 @@ function wpcf7_enqueue_scripts() {
250
  // so we need to deregister it and re-register the latest one
251
  wp_deregister_script( 'jquery-form' );
252
  wp_register_script( 'jquery-form', wpcf7_plugin_url( 'jquery.form.js' ),
253
- array( 'jquery' ), '2.47', true );
254
 
255
  $in_footer = true;
256
  if ( 'header' === WPCF7_LOAD_JS )
250
  // so we need to deregister it and re-register the latest one
251
  wp_deregister_script( 'jquery-form' );
252
  wp_register_script( 'jquery-form', wpcf7_plugin_url( 'jquery.form.js' ),
253
+ array( 'jquery' ), '2.52', true );
254
 
255
  $in_footer = true;
256
  if ( 'header' === WPCF7_LOAD_JS )
includes/functions.php CHANGED
@@ -169,6 +169,7 @@ function wpcf7_l10n() {
169
  'af' => __( 'Afrikaans', 'wpcf7' ),
170
  'sq' => __( 'Albanian', 'wpcf7' ),
171
  'ar' => __( 'Arabic', 'wpcf7' ),
 
172
  'bn_BD' => __( 'Bangla', 'wpcf7' ),
173
  'bs' => __( 'Bosnian', 'wpcf7' ),
174
  'pt_BR' => __( 'Brazilian Portuguese', 'wpcf7' ),
@@ -211,6 +212,7 @@ function wpcf7_l10n() {
211
  'sl_SI' => __( 'Slovene', 'wpcf7' ),
212
  'es_ES' => __( 'Spanish', 'wpcf7' ),
213
  'sv_SE' => __( 'Swedish', 'wpcf7' ),
 
214
  'th' => __( 'Thai', 'wpcf7' ),
215
  'tr_TR' => __( 'Turkish', 'wpcf7' ),
216
  'uk' => __( 'Ukrainian', 'wpcf7' ),
169
  'af' => __( 'Afrikaans', 'wpcf7' ),
170
  'sq' => __( 'Albanian', 'wpcf7' ),
171
  'ar' => __( 'Arabic', 'wpcf7' ),
172
+ 'hy_AM' => __( 'Armenian', 'wpcf7' ),
173
  'bn_BD' => __( 'Bangla', 'wpcf7' ),
174
  'bs' => __( 'Bosnian', 'wpcf7' ),
175
  'pt_BR' => __( 'Brazilian Portuguese', 'wpcf7' ),
212
  'sl_SI' => __( 'Slovene', 'wpcf7' ),
213
  'es_ES' => __( 'Spanish', 'wpcf7' ),
214
  'sv_SE' => __( 'Swedish', 'wpcf7' ),
215
+ 'ta' => __( 'Tamil', 'wpcf7' ),
216
  'th' => __( 'Thai', 'wpcf7' ),
217
  'tr_TR' => __( 'Turkish', 'wpcf7' ),
218
  'uk' => __( 'Ukrainian', 'wpcf7' ),
jquery.form.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * jQuery Form Plugin
3
- * version: 2.47 (04-SEP-2010)
4
  * @requires jQuery v1.3.2 or later
5
  *
6
  * Examples and documentation at: http://malsup.com/jquery/form/
@@ -18,11 +18,11 @@
18
  to bind your own submit handler to the form. For example,
19
 
20
  $(document).ready(function() {
21
- $('#myForm').bind('submit', function() {
 
22
  $(this).ajaxSubmit({
23
  target: '#output'
24
  });
25
- return false; // <-- important!
26
  });
27
  });
28
 
@@ -54,7 +54,8 @@ $.fn.ajaxSubmit = function(options) {
54
  options = { success: options };
55
  }
56
 
57
- var url = $.trim(this.attr('action'));
 
58
  if (url) {
59
  // clean url (don't include hash vaue)
60
  url = (url.match(/^([^#]+)/)||[])[1];
@@ -366,8 +367,12 @@ $.fn.ajaxSubmit = function(options) {
366
  else if (scr) {
367
  // account for browsers injecting pre around json response
368
  var pre = doc.getElementsByTagName('pre')[0];
 
369
  if (pre) {
370
- xhr.responseText = pre.innerHTML;
 
 
 
371
  }
372
  }
373
  }
@@ -382,6 +387,11 @@ $.fn.ajaxSubmit = function(options) {
382
  xhr.error = e;
383
  $.handleError(s, xhr, 'error', e);
384
  }
 
 
 
 
 
385
 
386
  // ordering of these callbacks/triggers is odd, but that's how $.ajax does it
387
  if (ok) {
@@ -517,7 +527,7 @@ $.fn.formToArray = function(semantic) {
517
  return a;
518
  }
519
 
520
- var i,j,n,v,el;
521
  for(i=0, max=els.length; i < max; i++) {
522
  el = els[i];
523
  n = el.name;
1
  /*!
2
  * jQuery Form Plugin
3
+ * version: 2.52 (07-DEC-2010)
4
  * @requires jQuery v1.3.2 or later
5
  *
6
  * Examples and documentation at: http://malsup.com/jquery/form/
18
  to bind your own submit handler to the form. For example,
19
 
20
  $(document).ready(function() {
21
+ $('#myForm').bind('submit', function(e) {
22
+ e.preventDefault(); // <-- important
23
  $(this).ajaxSubmit({
24
  target: '#output'
25
  });
 
26
  });
27
  });
28
 
54
  options = { success: options };
55
  }
56
 
57
+ var action = this.attr('action');
58
+ var url = (typeof action === 'string') ? $.trim(action) : '';
59
  if (url) {
60
  // clean url (don't include hash vaue)
61
  url = (url.match(/^([^#]+)/)||[])[1];
367
  else if (scr) {
368
  // account for browsers injecting pre around json response
369
  var pre = doc.getElementsByTagName('pre')[0];
370
+ var b = doc.getElementsByTagName('body')[0];
371
  if (pre) {
372
+ xhr.responseText = pre.textContent;
373
+ }
374
+ else if (b) {
375
+ xhr.responseText = b.innerHTML;
376
  }
377
  }
378
  }
387
  xhr.error = e;
388
  $.handleError(s, xhr, 'error', e);
389
  }
390
+
391
+ if (xhr.aborted) {
392
+ log('upload aborted');
393
+ ok = false;
394
+ }
395
 
396
  // ordering of these callbacks/triggers is odd, but that's how $.ajax does it
397
  if (ok) {
527
  return a;
528
  }
529
 
530
+ var i,j,n,v,el,max,jmax;
531
  for(i=0, max=els.length; i < max; i++) {
532
  el = els[i];
533
  n = el.name;
languages/wpcf7-ar.mo CHANGED
Binary file
languages/wpcf7-de_DE.mo CHANGED
Binary file
languages/wpcf7-hy_AM.mo ADDED
Binary file
languages/wpcf7-ja.mo CHANGED
Binary file
languages/wpcf7-nl_NL.mo CHANGED
Binary file
languages/wpcf7-ro_RO.mo CHANGED
Binary file
languages/wpcf7-ta.mo ADDED
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: 2010-09-25 19:03+0900\n"
6
- "PO-Revision-Date: 2010-09-25 19:03+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -235,7 +235,7 @@ msgstr ""
235
  msgid "(select language)"
236
  msgstr ""
237
 
238
- #: contact-form-7/includes/classes.php:590
239
  msgid "Untitled"
240
  msgstr ""
241
 
@@ -350,182 +350,194 @@ msgid "Arabic"
350
  msgstr ""
351
 
352
  #: contact-form-7/includes/functions.php:172
353
- msgid "Bangla"
354
  msgstr ""
355
 
356
  #: contact-form-7/includes/functions.php:173
357
- msgid "Bosnian"
358
  msgstr ""
359
 
360
  #: contact-form-7/includes/functions.php:174
361
- msgid "Brazilian Portuguese"
362
  msgstr ""
363
 
364
  #: contact-form-7/includes/functions.php:175
365
- msgid "Bulgarian"
366
  msgstr ""
367
 
368
  #: contact-form-7/includes/functions.php:176
369
- msgid "Catalan"
370
  msgstr ""
371
 
372
  #: contact-form-7/includes/functions.php:177
373
- msgid "Chinese (Simplified)"
374
  msgstr ""
375
 
376
  #: contact-form-7/includes/functions.php:178
377
- msgid "Chinese (Traditional)"
378
  msgstr ""
379
 
380
  #: contact-form-7/includes/functions.php:179
381
- msgid "Croatian"
382
  msgstr ""
383
 
384
  #: contact-form-7/includes/functions.php:180
385
- msgid "Czech"
386
  msgstr ""
387
 
388
  #: contact-form-7/includes/functions.php:181
389
- msgid "Danish"
390
  msgstr ""
391
 
392
  #: contact-form-7/includes/functions.php:182
393
- msgid "Dutch"
394
  msgstr ""
395
 
396
  #: contact-form-7/includes/functions.php:183
397
- msgid "English"
398
  msgstr ""
399
 
400
  #: contact-form-7/includes/functions.php:184
401
- msgid "Estonian"
402
  msgstr ""
403
 
404
  #: contact-form-7/includes/functions.php:185
405
- msgid "Finnish"
406
  msgstr ""
407
 
408
  #: contact-form-7/includes/functions.php:186
409
- msgid "French"
410
  msgstr ""
411
 
412
  #: contact-form-7/includes/functions.php:187
413
- msgid "Galician"
414
  msgstr ""
415
 
416
  #: contact-form-7/includes/functions.php:188
417
- msgid "Georgian"
418
  msgstr ""
419
 
420
  #: contact-form-7/includes/functions.php:189
421
- msgid "German"
422
  msgstr ""
423
 
424
  #: contact-form-7/includes/functions.php:190
425
- msgid "Greek"
426
  msgstr ""
427
 
428
  #: contact-form-7/includes/functions.php:191
429
- msgid "Hebrew"
430
  msgstr ""
431
 
432
  #: contact-form-7/includes/functions.php:192
433
- msgid "Hindi"
434
  msgstr ""
435
 
436
  #: contact-form-7/includes/functions.php:193
437
- msgid "Hungarian"
438
  msgstr ""
439
 
440
  #: contact-form-7/includes/functions.php:194
441
- msgid "Indonesian"
442
  msgstr ""
443
 
444
  #: contact-form-7/includes/functions.php:195
445
- msgid "Italian"
446
  msgstr ""
447
 
448
  #: contact-form-7/includes/functions.php:196
449
- msgid "Japanese"
450
  msgstr ""
451
 
452
  #: contact-form-7/includes/functions.php:197
453
- msgid "Korean"
454
  msgstr ""
455
 
456
  #: contact-form-7/includes/functions.php:198
457
- msgid "Latvian"
458
  msgstr ""
459
 
460
  #: contact-form-7/includes/functions.php:199
461
- msgid "Lithuanian"
462
  msgstr ""
463
 
464
  #: contact-form-7/includes/functions.php:200
465
- msgid "Malay"
466
  msgstr ""
467
 
468
  #: contact-form-7/includes/functions.php:201
469
- msgid "Malayalam"
470
  msgstr ""
471
 
472
  #: contact-form-7/includes/functions.php:202
473
- msgid "Norwegian"
474
  msgstr ""
475
 
476
  #: contact-form-7/includes/functions.php:203
477
- msgid "Persian"
478
  msgstr ""
479
 
480
  #: contact-form-7/includes/functions.php:204
481
- msgid "Polish"
482
  msgstr ""
483
 
484
  #: contact-form-7/includes/functions.php:205
485
- msgid "Portuguese"
486
  msgstr ""
487
 
488
  #: contact-form-7/includes/functions.php:206
489
- msgid "Russian"
490
  msgstr ""
491
 
492
  #: contact-form-7/includes/functions.php:207
493
- msgid "Romanian"
494
  msgstr ""
495
 
496
  #: contact-form-7/includes/functions.php:208
497
- msgid "Serbian"
498
  msgstr ""
499
 
500
  #: contact-form-7/includes/functions.php:209
501
- msgid "Slovak"
502
  msgstr ""
503
 
504
  #: contact-form-7/includes/functions.php:210
505
- msgid "Slovene"
506
  msgstr ""
507
 
508
  #: contact-form-7/includes/functions.php:211
509
- msgid "Spanish"
510
  msgstr ""
511
 
512
  #: contact-form-7/includes/functions.php:212
513
- msgid "Swedish"
514
  msgstr ""
515
 
516
  #: contact-form-7/includes/functions.php:213
517
- msgid "Thai"
518
  msgstr ""
519
 
520
  #: contact-form-7/includes/functions.php:214
521
- msgid "Turkish"
522
  msgstr ""
523
 
524
  #: contact-form-7/includes/functions.php:215
525
- msgid "Ukrainian"
526
  msgstr ""
527
 
528
  #: contact-form-7/includes/functions.php:216
 
 
 
 
 
 
 
 
 
 
 
 
529
  msgid "Vietnamese"
530
  msgstr ""
531
 
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-01-06 09:35+0900\n"
6
+ "PO-Revision-Date: 2011-01-06 09:35+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
235
  msgid "(select language)"
236
  msgstr ""
237
 
238
+ #: contact-form-7/includes/classes.php:596
239
  msgid "Untitled"
240
  msgstr ""
241
 
350
  msgstr ""
351
 
352
  #: contact-form-7/includes/functions.php:172
353
+ msgid "Armenian"
354
  msgstr ""
355
 
356
  #: contact-form-7/includes/functions.php:173
357
+ msgid "Bangla"
358
  msgstr ""
359
 
360
  #: contact-form-7/includes/functions.php:174
361
+ msgid "Bosnian"
362
  msgstr ""
363
 
364
  #: contact-form-7/includes/functions.php:175
365
+ msgid "Brazilian Portuguese"
366
  msgstr ""
367
 
368
  #: contact-form-7/includes/functions.php:176
369
+ msgid "Bulgarian"
370
  msgstr ""
371
 
372
  #: contact-form-7/includes/functions.php:177
373
+ msgid "Catalan"
374
  msgstr ""
375
 
376
  #: contact-form-7/includes/functions.php:178
377
+ msgid "Chinese (Simplified)"
378
  msgstr ""
379
 
380
  #: contact-form-7/includes/functions.php:179
381
+ msgid "Chinese (Traditional)"
382
  msgstr ""
383
 
384
  #: contact-form-7/includes/functions.php:180
385
+ msgid "Croatian"
386
  msgstr ""
387
 
388
  #: contact-form-7/includes/functions.php:181
389
+ msgid "Czech"
390
  msgstr ""
391
 
392
  #: contact-form-7/includes/functions.php:182
393
+ msgid "Danish"
394
  msgstr ""
395
 
396
  #: contact-form-7/includes/functions.php:183
397
+ msgid "Dutch"
398
  msgstr ""
399
 
400
  #: contact-form-7/includes/functions.php:184
401
+ msgid "English"
402
  msgstr ""
403
 
404
  #: contact-form-7/includes/functions.php:185
405
+ msgid "Estonian"
406
  msgstr ""
407
 
408
  #: contact-form-7/includes/functions.php:186
409
+ msgid "Finnish"
410
  msgstr ""
411
 
412
  #: contact-form-7/includes/functions.php:187
413
+ msgid "French"
414
  msgstr ""
415
 
416
  #: contact-form-7/includes/functions.php:188
417
+ msgid "Galician"
418
  msgstr ""
419
 
420
  #: contact-form-7/includes/functions.php:189
421
+ msgid "Georgian"
422
  msgstr ""
423
 
424
  #: contact-form-7/includes/functions.php:190
425
+ msgid "German"
426
  msgstr ""
427
 
428
  #: contact-form-7/includes/functions.php:191
429
+ msgid "Greek"
430
  msgstr ""
431
 
432
  #: contact-form-7/includes/functions.php:192
433
+ msgid "Hebrew"
434
  msgstr ""
435
 
436
  #: contact-form-7/includes/functions.php:193
437
+ msgid "Hindi"
438
  msgstr ""
439
 
440
  #: contact-form-7/includes/functions.php:194
441
+ msgid "Hungarian"
442
  msgstr ""
443
 
444
  #: contact-form-7/includes/functions.php:195
445
+ msgid "Indonesian"
446
  msgstr ""
447
 
448
  #: contact-form-7/includes/functions.php:196
449
+ msgid "Italian"
450
  msgstr ""
451
 
452
  #: contact-form-7/includes/functions.php:197
453
+ msgid "Japanese"
454
  msgstr ""
455
 
456
  #: contact-form-7/includes/functions.php:198
457
+ msgid "Korean"
458
  msgstr ""
459
 
460
  #: contact-form-7/includes/functions.php:199
461
+ msgid "Latvian"
462
  msgstr ""
463
 
464
  #: contact-form-7/includes/functions.php:200
465
+ msgid "Lithuanian"
466
  msgstr ""
467
 
468
  #: contact-form-7/includes/functions.php:201
469
+ msgid "Macedonian"
470
  msgstr ""
471
 
472
  #: contact-form-7/includes/functions.php:202
473
+ msgid "Malay"
474
  msgstr ""
475
 
476
  #: contact-form-7/includes/functions.php:203
477
+ msgid "Malayalam"
478
  msgstr ""
479
 
480
  #: contact-form-7/includes/functions.php:204
481
+ msgid "Norwegian"
482
  msgstr ""
483
 
484
  #: contact-form-7/includes/functions.php:205
485
+ msgid "Persian"
486
  msgstr ""
487
 
488
  #: contact-form-7/includes/functions.php:206
489
+ msgid "Polish"
490
  msgstr ""
491
 
492
  #: contact-form-7/includes/functions.php:207
493
+ msgid "Portuguese"
494
  msgstr ""
495
 
496
  #: contact-form-7/includes/functions.php:208
497
+ msgid "Russian"
498
  msgstr ""
499
 
500
  #: contact-form-7/includes/functions.php:209
501
+ msgid "Romanian"
502
  msgstr ""
503
 
504
  #: contact-form-7/includes/functions.php:210
505
+ msgid "Serbian"
506
  msgstr ""
507
 
508
  #: contact-form-7/includes/functions.php:211
509
+ msgid "Slovak"
510
  msgstr ""
511
 
512
  #: contact-form-7/includes/functions.php:212
513
+ msgid "Slovene"
514
  msgstr ""
515
 
516
  #: contact-form-7/includes/functions.php:213
517
+ msgid "Spanish"
518
  msgstr ""
519
 
520
  #: contact-form-7/includes/functions.php:214
521
+ msgid "Swedish"
522
  msgstr ""
523
 
524
  #: contact-form-7/includes/functions.php:215
525
+ msgid "Tamil"
526
  msgstr ""
527
 
528
  #: contact-form-7/includes/functions.php:216
529
+ msgid "Thai"
530
+ msgstr ""
531
+
532
+ #: contact-form-7/includes/functions.php:217
533
+ msgid "Turkish"
534
+ msgstr ""
535
+
536
+ #: contact-form-7/includes/functions.php:218
537
+ msgid "Ukrainian"
538
+ msgstr ""
539
+
540
+ #: contact-form-7/includes/functions.php:219
541
  msgid "Vietnamese"
542
  msgstr ""
543
 
modules/captcha.php CHANGED
@@ -56,10 +56,10 @@ function wpcf7_captcha_shortcode_handler( $tag ) {
56
  $atts .= ' class="' . trim( $class_att ) . '"';
57
 
58
  // Value.
59
- if ( wpcf7_is_posted() )
60
- $value = '';
61
- else
62
  $value = $values[0];
 
 
63
 
64
  if ( 'captchac' == $type ) {
65
  if ( ! class_exists( 'ReallySimpleCaptcha' ) ) {
56
  $atts .= ' class="' . trim( $class_att ) . '"';
57
 
58
  // Value.
59
+ if ( ! wpcf7_is_posted() && isset( $values[0] ) )
 
 
60
  $value = $values[0];
61
+ else
62
+ $value = '';
63
 
64
  if ( 'captchac' == $type ) {
65
  if ( ! class_exists( 'ReallySimpleCaptcha' ) ) {
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Contact Form 7 ===
2
  Contributors: takayukister
 
3
  Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
4
  Requires at least: 2.9
5
- Tested up to: 3.0.1
6
- Stable tag: 2.4.2
7
 
8
  Just another contact form plugin. Simple but flexible.
9
 
@@ -17,11 +18,16 @@ Contact Form 7 ([http://contactform7.com](http://contactform7.com/))
17
 
18
  * [Docs](http://contactform7.com/docs/) - [FAQ](http://contactform7.com/faq/) - [Support](http://contactform7.com/support/)
19
 
 
 
 
 
20
  = Translators =
21
 
22
  * Afrikaans (af) - [Schalk Burger](http://www.schalkburger.za.net/)
23
  * Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
24
- * Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/), Muhammed Lardi
 
25
  * Bangla (bn_BD) - [SM Mehdi Akram](http://www.shamokaldarpon.com/)
26
  * Bosnian (bs) - [Vedran](http://www.seorabbit.com/)
27
  * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/), [Henrique Vianna](http://henriquevianna.com/), [Caciano Gabriel Batista](http://www.gn10.com.br/), [Gervásio Antônio](http://twitter.com/gervasioantonio)
@@ -32,7 +38,7 @@ Contact Form 7 ([http://contactform7.com](http://contactform7.com/))
32
  * Croatian (hr) - [tolingo Translation Services](http://www.tolingo.com)
33
  * Czech (cs_CZ) - Korry, [Radovan Fiser](http://algymsa.cz/)
34
  * Danish (da_DK) - [Jens Griebel](http://www.kompas-it.dk/), [Georg S. Adamsen](http://wordpress.blogos.dk/)
35
- * Dutch (nl_NL) - [Chris Devriese](http://www.100it.be/), [Martin Hein](http://www.split-a-pixel.nl/)
36
  * Estonian (et) - [Peeter Rahuvarm](http://www.kraabus.ee), Egon Elbre
37
  * Finnish (fi) - [Miika Turunen](http://www.webwork.fi/), [Mediajalostamo](http://www.mediajalostamo.fi/)
38
  * French (fr_FR) - [Jillij](http://www.jillij.com/), [Oncle Tom](http://case.oncle-tom.net/), [Maître Mô](http://maitremo.fr/)
@@ -56,13 +62,14 @@ Contact Form 7 ([http://contactform7.com](http://contactform7.com/))
56
  * Persian (Farsi; fa_IR) - [Mohammad Musavi](http://www.musavis.com/)
57
  * Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/), [Daniel Fruzynski](http://www.poradnik-webmastera.com)
58
  * Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com)
59
- * Russian (ru_RU) - [Dmitry Volotovich](http://www.volnov.com)
60
- * Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/)
61
  * Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/), [Aleksandar Urošević](http://blog.urosevic.net/)
62
  * Slovak (sk) - [Patrik Bóna](http://www.mrhead.sk/)
63
  * Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net)
64
  * 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/)
65
  * Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
 
66
  * Thai (th) - [kazama](http://blog.wordthai.com/)
67
  * Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com), [Hasan Yılmaz](http://hedefturkce.com/), [Emin Buğra Saral](http://www.rahmetli.info/)
68
  * Ukrainian (uk) - [Andrey Kovba](http://myserver.com.ua/), [Ukrainian WordPress localization team](http://wordpress.co.ua/plugins/contact-form-7.html)
@@ -96,6 +103,13 @@ Do you have questions or issues with Contact Form 7? Use these support channels
96
 
97
  == Changelog ==
98
 
 
 
 
 
 
 
 
99
  = 2.4.2 =
100
 
101
  * Translation for Macedonian has been created by Darko.
1
  === Contact Form 7 ===
2
  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: 2.9
6
+ Tested up to: 3.0.4
7
+ Stable tag: 2.4.3
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
18
 
19
  * [Docs](http://contactform7.com/docs/) - [FAQ](http://contactform7.com/faq/) - [Support](http://contactform7.com/support/)
20
 
21
+ = Contact Form 7 Needs Your Support =
22
+
23
+ It is hard to continue development and support for this plugin without contributions from users like you. If you enjoy using Contact Form 7 and find it useful, please consider [__making a donation__](http://contactform7.com/donate/). Your donation will help encourage and support the plugin's continued development and better user support.
24
+
25
  = Translators =
26
 
27
  * Afrikaans (af) - [Schalk Burger](http://www.schalkburger.za.net/)
28
  * Albanian (sq) - [Olgi Zenullari](http://www.olgizenullari.com/)
29
+ * Arabic (ar) - [Tarek Chaaban](http://www.chaaban.info/), Muhammed Lardi, [Yaser Mohammed](http://www.englize.com/)
30
+ * Armenian (hy_AM) - [Emmanuelle Traduction](http://www.translatonline.com/)
31
  * Bangla (bn_BD) - [SM Mehdi Akram](http://www.shamokaldarpon.com/)
32
  * Bosnian (bs) - [Vedran](http://www.seorabbit.com/)
33
  * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/), [Henrique Vianna](http://henriquevianna.com/), [Caciano Gabriel Batista](http://www.gn10.com.br/), [Gervásio Antônio](http://twitter.com/gervasioantonio)
38
  * Croatian (hr) - [tolingo Translation Services](http://www.tolingo.com)
39
  * Czech (cs_CZ) - Korry, [Radovan Fiser](http://algymsa.cz/)
40
  * Danish (da_DK) - [Jens Griebel](http://www.kompas-it.dk/), [Georg S. Adamsen](http://wordpress.blogos.dk/)
41
+ * Dutch (nl_NL) - [Chris Devriese](http://www.100it.be/), [Martin Hein](http://www.split-a-pixel.nl/), [Rene](http://wpwebshop.com/)
42
  * Estonian (et) - [Peeter Rahuvarm](http://www.kraabus.ee), Egon Elbre
43
  * Finnish (fi) - [Miika Turunen](http://www.webwork.fi/), [Mediajalostamo](http://www.mediajalostamo.fi/)
44
  * French (fr_FR) - [Jillij](http://www.jillij.com/), [Oncle Tom](http://case.oncle-tom.net/), [Maître Mô](http://maitremo.fr/)
62
  * Persian (Farsi; fa_IR) - [Mohammad Musavi](http://www.musavis.com/)
63
  * Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/), [Daniel Fruzynski](http://www.poradnik-webmastera.com)
64
  * Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com)
65
+ * Russian (ru_RU) - Dmitry Volotovich
66
+ * Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/), Anunturi Jibo
67
  * Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/), [Aleksandar Urošević](http://blog.urosevic.net/)
68
  * Slovak (sk) - [Patrik Bóna](http://www.mrhead.sk/)
69
  * Slovene (sl_SI) - [Mihael Simonič](http://smihael.bplaced.net)
70
  * 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/)
71
  * Swedish (sv_SE) - [Fredrik Jonsson](http://www.fredda-o-ac.se/), [the Swedish community](http://wp-support.se/)
72
+ * Tamil (ta) - [Nitin Aggarwal](http://offshoreally.com/)
73
  * Thai (th) - [kazama](http://blog.wordthai.com/)
74
  * Turkish (tr_TR) - [Roman Neumuller](http://katpatuka.wordpress.com), [Hasan Yılmaz](http://hedefturkce.com/), [Emin Buğra Saral](http://www.rahmetli.info/)
75
  * Ukrainian (uk) - [Andrey Kovba](http://myserver.com.ua/), [Ukrainian WordPress localization team](http://wordpress.co.ua/plugins/contact-form-7.html)
103
 
104
  == Changelog ==
105
 
106
+ = 2.4.3 =
107
+
108
+ * Translation for Armenian has been created by Emmanuelle Traduction.
109
+ * Translation for Tamil has been created by Nitin Aggarwal.
110
+ * Translations for German (Ivan Graf), Dutch (Rene), Arabic (Yaser Mohammed) and Romanian (Anunturi Jibo) have been updated.
111
+ * Bundled jquery.form has been updated to 2.52.
112
+
113
  = 2.4.2 =
114
 
115
  * Translation for Macedonian has been created by Darko.
wp-contact-form-7.php CHANGED
@@ -5,10 +5,10 @@ Plugin URI: http://contactform7.com/
5
  Description: Just another contact form plugin. Simple but flexible.
6
  Author: Takayuki Miyoshi
7
  Author URI: http://ideasilo.wordpress.com/
8
- Version: 2.4.2
9
  */
10
 
11
- /* Copyright 2007-2010 Takayuki Miyoshi (email: takayukister at gmail.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ Version: 2.4.2
25
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
 
28
- define( 'WPCF7_VERSION', '2.4.2' );
29
 
30
  if ( ! defined( 'WPCF7_PLUGIN_BASENAME' ) )
31
  define( 'WPCF7_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
5
  Description: Just another contact form plugin. Simple but flexible.
6
  Author: Takayuki Miyoshi
7
  Author URI: http://ideasilo.wordpress.com/
8
+ Version: 2.4.3
9
  */
10
 
11
+ /* Copyright 2007-2011 Takayuki Miyoshi (email: takayukister at gmail.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License as published by
25
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
 
28
+ define( 'WPCF7_VERSION', '2.4.3' );
29
 
30
  if ( ! defined( 'WPCF7_PLUGIN_BASENAME' ) )
31
  define( 'WPCF7_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );