Version Description
- A major change has been made to the internal structure. For details, see beta release announcement.
- The exclude_blank mail option has been introduced.
- The wpcf7_load_js and wpcf7_load_css (functions and filter hooks) have been introduced.
- The jQuery Form Plugin (jquery.form.js) has been updated to 3.51.0.
- Translations for Persian and Slovak have been updated.
- WordPress 3.8 or higher is required.
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 3.9 |
Comparing to | |
See all releases |
Code changes from version 3.9-beta to 3.9
- includes/contact-form.php +25 -0
- includes/controller.php +17 -11
- languages/contact-form-7-ja.mo +0 -0
- languages/contact-form-7-sk_SK.mo +0 -0
- languages/contact-form-7.pot +49 -42
- modules/captcha.php +2 -3
- modules/checkbox.php +1 -0
- modules/file.php +1 -1
- readme.txt +3 -3
- wp-contact-form-7.php +2 -2
includes/contact-form.php
CHANGED
@@ -148,6 +148,31 @@ class WPCF7_ContactForm {
|
|
148 |
do_action( 'wpcf7_contact_form', $this );
|
149 |
}
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
public function initial() {
|
152 |
return empty( $this->id );
|
153 |
}
|
148 |
do_action( 'wpcf7_contact_form', $this );
|
149 |
}
|
150 |
|
151 |
+
public function __get( $name ) {
|
152 |
+
$message = __( '<code>%1$s</code> property of a <code>WPCF7_ContactForm</code> object is <strong>no longer accessible</strong>. Use <code>%2$s</code> method instead.', 'contact-form-7' );
|
153 |
+
|
154 |
+
if ( 'id' == $name ) {
|
155 |
+
if ( WP_DEBUG ) {
|
156 |
+
trigger_error( sprintf( $message, 'id', 'id()' ) );
|
157 |
+
}
|
158 |
+
|
159 |
+
return $this->id;
|
160 |
+
} elseif ( 'title' == $name ) {
|
161 |
+
if ( WP_DEBUG ) {
|
162 |
+
trigger_error( sprintf( $message, 'title', 'title()' ) );
|
163 |
+
}
|
164 |
+
|
165 |
+
return $this->title;
|
166 |
+
} elseif ( $prop = $this->prop( $name ) ) {
|
167 |
+
if ( WP_DEBUG ) {
|
168 |
+
trigger_error(
|
169 |
+
sprintf( $message, $name, 'prop(\'' . $name . '\')' ) );
|
170 |
+
}
|
171 |
+
|
172 |
+
return $prop;
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
public function initial() {
|
177 |
return empty( $this->id );
|
178 |
}
|
includes/controller.php
CHANGED
@@ -3,17 +3,26 @@
|
|
3 |
add_action( 'init', 'wpcf7_control_init', 11 );
|
4 |
|
5 |
function wpcf7_control_init() {
|
6 |
-
|
7 |
-
wpcf7_ajax_json_echo();
|
8 |
-
wpcf7_submit_nonajax();
|
9 |
-
}
|
10 |
-
|
11 |
-
function wpcf7_ajax_onload() {
|
12 |
-
if ( 'GET' != $_SERVER['REQUEST_METHOD']
|
13 |
-
|| ! isset( $_GET['_wpcf7_is_ajax_call'] ) ) {
|
14 |
return;
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
$echo = '';
|
18 |
$items = array();
|
19 |
|
@@ -33,9 +42,6 @@ function wpcf7_ajax_onload() {
|
|
33 |
}
|
34 |
|
35 |
function wpcf7_ajax_json_echo() {
|
36 |
-
if ( 'POST' != $_SERVER['REQUEST_METHOD'] || ! isset( $_POST['_wpcf7_is_ajax_call'] ) )
|
37 |
-
return;
|
38 |
-
|
39 |
$echo = '';
|
40 |
|
41 |
if ( isset( $_POST['_wpcf7'] ) ) {
|
3 |
add_action( 'init', 'wpcf7_control_init', 11 );
|
4 |
|
5 |
function wpcf7_control_init() {
|
6 |
+
if ( ! isset( $_SERVER['REQUEST_METHOD'] ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
return;
|
8 |
}
|
9 |
|
10 |
+
if ( 'GET' == $_SERVER['REQUEST_METHOD'] ) {
|
11 |
+
if ( isset( $_GET['_wpcf7_is_ajax_call'] ) ) {
|
12 |
+
wpcf7_ajax_onload();
|
13 |
+
}
|
14 |
+
}
|
15 |
+
|
16 |
+
if ( 'POST' == $_SERVER['REQUEST_METHOD'] ) {
|
17 |
+
if ( isset( $_POST['_wpcf7_is_ajax_call'] ) ) {
|
18 |
+
wpcf7_ajax_json_echo();
|
19 |
+
}
|
20 |
+
|
21 |
+
wpcf7_submit_nonajax();
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
function wpcf7_ajax_onload() {
|
26 |
$echo = '';
|
27 |
$items = array();
|
28 |
|
42 |
}
|
43 |
|
44 |
function wpcf7_ajax_json_echo() {
|
|
|
|
|
|
|
45 |
$echo = '';
|
46 |
|
47 |
if ( isset( $_POST['_wpcf7'] ) ) {
|
languages/contact-form-7-ja.mo
CHANGED
Binary file
|
languages/contact-form-7-sk_SK.mo
CHANGED
Binary file
|
languages/contact-form-7.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: 2014-07-
|
6 |
-
"PO-Revision-Date: 2014-07-
|
7 |
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -368,106 +368,113 @@ msgid "Contact Form"
|
|
368 |
msgstr ""
|
369 |
|
370 |
#: contact-form-7/includes/contact-form.php:76
|
371 |
-
#: contact-form-7/includes/contact-form.php:
|
372 |
msgid "Untitled"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: contact-form-7/includes/contact-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
msgid "Your Name"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: contact-form-7/includes/contact-form.php:
|
380 |
-
#: contact-form-7/includes/contact-form.php:
|
381 |
msgid "(required)"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: contact-form-7/includes/contact-form.php:
|
385 |
msgid "Your Email"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: contact-form-7/includes/contact-form.php:
|
389 |
msgid "Subject"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: contact-form-7/includes/contact-form.php:
|
393 |
msgid "Your Message"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: contact-form-7/includes/contact-form.php:
|
397 |
#: contact-form-7/modules/submit.php:28
|
398 |
msgid "Send"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: contact-form-7/includes/contact-form.php:
|
402 |
#, php-format
|
403 |
msgid "From: %s"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: contact-form-7/includes/contact-form.php:
|
407 |
#, php-format
|
408 |
msgid "Subject: %s"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: contact-form-7/includes/contact-form.php:
|
412 |
-
#: contact-form-7/includes/contact-form.php:
|
413 |
msgid "Message Body:"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: contact-form-7/includes/contact-form.php:
|
417 |
-
#: contact-form-7/includes/contact-form.php:
|
418 |
#, php-format
|
419 |
msgid "This e-mail was sent from a contact form on %1$s (%2$s)"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: contact-form-7/includes/contact-form.php:
|
423 |
msgid "Sender's message was sent successfully"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: contact-form-7/includes/contact-form.php:
|
427 |
msgid "Your message was sent successfully. Thanks."
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: contact-form-7/includes/contact-form.php:
|
431 |
msgid "Sender's message was failed to send"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: contact-form-7/includes/contact-form.php:
|
435 |
-
#: contact-form-7/includes/contact-form.php:
|
436 |
msgid ""
|
437 |
"Failed to send your message. Please try later or contact the administrator "
|
438 |
"by another method."
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: contact-form-7/includes/contact-form.php:
|
442 |
msgid "Validation errors occurred"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: contact-form-7/includes/contact-form.php:
|
446 |
msgid ""
|
447 |
"Validation errors occurred. Please confirm the fields and submit it again."
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: contact-form-7/includes/contact-form.php:
|
451 |
msgid "Submission was referred to as spam"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: contact-form-7/includes/contact-form.php:
|
455 |
msgid "There are terms that the sender must accept"
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: contact-form-7/includes/contact-form.php:
|
459 |
msgid "Please accept the terms to proceed."
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: contact-form-7/includes/contact-form.php:
|
463 |
msgid "There is a field that the sender must fill in"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: contact-form-7/includes/contact-form.php:
|
467 |
msgid "Please fill the required field."
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: contact-form-7/includes/controller.php:
|
471 |
msgid "Sending ..."
|
472 |
msgstr ""
|
473 |
|
@@ -729,7 +736,7 @@ msgstr ""
|
|
729 |
|
730 |
#: contact-form-7/modules/acceptance.php:146
|
731 |
#: contact-form-7/modules/captcha.php:210
|
732 |
-
#: contact-form-7/modules/checkbox.php:
|
733 |
#: contact-form-7/modules/file.php:240 contact-form-7/modules/number.php:174
|
734 |
#: contact-form-7/modules/quiz.php:171 contact-form-7/modules/select.php:161
|
735 |
#: contact-form-7/modules/text.php:217 contact-form-7/modules/textarea.php:116
|
@@ -747,8 +754,8 @@ msgstr ""
|
|
747 |
#: contact-form-7/modules/captcha.php:246
|
748 |
#: contact-form-7/modules/captcha.php:251
|
749 |
#: contact-form-7/modules/captcha.php:254
|
750 |
-
#: contact-form-7/modules/checkbox.php:
|
751 |
-
#: contact-form-7/modules/checkbox.php:
|
752 |
#: contact-form-7/modules/date.php:172 contact-form-7/modules/date.php:177
|
753 |
#: contact-form-7/modules/date.php:180 contact-form-7/modules/date.php:185
|
754 |
#: contact-form-7/modules/date.php:190 contact-form-7/modules/file.php:245
|
@@ -787,7 +794,7 @@ msgstr ""
|
|
787 |
|
788 |
#: contact-form-7/modules/acceptance.php:167
|
789 |
#: contact-form-7/modules/captcha.php:259
|
790 |
-
#: contact-form-7/modules/checkbox.php:
|
791 |
#: contact-form-7/modules/file.php:261 contact-form-7/modules/number.php:208
|
792 |
#: contact-form-7/modules/quiz.php:199 contact-form-7/modules/select.php:186
|
793 |
#: contact-form-7/modules/submit.php:74 contact-form-7/modules/text.php:260
|
@@ -871,44 +878,44 @@ msgid ""
|
|
871 |
"and FreeType) are not available on your server."
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: contact-form-7/modules/checkbox.php:
|
875 |
msgid "Checkboxes"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: contact-form-7/modules/checkbox.php:
|
879 |
msgid "Radio buttons"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: contact-form-7/modules/checkbox.php:
|
883 |
#: contact-form-7/modules/file.php:239 contact-form-7/modules/number.php:173
|
884 |
#: contact-form-7/modules/select.php:160 contact-form-7/modules/text.php:216
|
885 |
#: contact-form-7/modules/textarea.php:115
|
886 |
msgid "Required field?"
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: contact-form-7/modules/checkbox.php:
|
890 |
#: contact-form-7/modules/select.php:174
|
891 |
msgid "Choices"
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: contact-form-7/modules/checkbox.php:
|
895 |
#: contact-form-7/modules/select.php:176
|
896 |
msgid "* One choice per line."
|
897 |
msgstr ""
|
898 |
|
899 |
-
#: contact-form-7/modules/checkbox.php:
|
900 |
msgid "Put a label first, a checkbox last?"
|
901 |
msgstr ""
|
902 |
|
903 |
-
#: contact-form-7/modules/checkbox.php:
|
904 |
msgid "Wrap each item with <label> tag?"
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: contact-form-7/modules/checkbox.php:
|
908 |
msgid "Make checkboxes exclusive?"
|
909 |
msgstr ""
|
910 |
|
911 |
-
#: contact-form-7/modules/checkbox.php:
|
912 |
#: contact-form-7/modules/number.php:210 contact-form-7/modules/select.php:188
|
913 |
#: contact-form-7/modules/text.php:262 contact-form-7/modules/textarea.php:152
|
914 |
msgid "And, put this code into the Mail fields below."
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Contact Form 7\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-07-09 20:55+0900\n"
|
6 |
+
"PO-Revision-Date: 2014-07-09 20:56+0900\n"
|
7 |
"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
368 |
msgstr ""
|
369 |
|
370 |
#: contact-form-7/includes/contact-form.php:76
|
371 |
+
#: contact-form-7/includes/contact-form.php:226
|
372 |
msgid "Untitled"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: contact-form-7/includes/contact-form.php:152
|
376 |
+
#, php-format
|
377 |
+
msgid ""
|
378 |
+
"<code>%1$s</code> property of a <code>WPCF7_ContactForm</code> object is "
|
379 |
+
"<strong>no longer accessible</strong>. Use <code>%2$s</code> method instead."
|
380 |
+
msgstr ""
|
381 |
+
|
382 |
+
#: contact-form-7/includes/contact-form.php:834
|
383 |
msgid "Your Name"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: contact-form-7/includes/contact-form.php:834
|
387 |
+
#: contact-form-7/includes/contact-form.php:836
|
388 |
msgid "(required)"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: contact-form-7/includes/contact-form.php:836
|
392 |
msgid "Your Email"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: contact-form-7/includes/contact-form.php:838
|
396 |
msgid "Subject"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: contact-form-7/includes/contact-form.php:840
|
400 |
msgid "Your Message"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: contact-form-7/includes/contact-form.php:842
|
404 |
#: contact-form-7/modules/submit.php:28
|
405 |
msgid "Send"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: contact-form-7/includes/contact-form.php:850
|
409 |
#, php-format
|
410 |
msgid "From: %s"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: contact-form-7/includes/contact-form.php:851
|
414 |
#, php-format
|
415 |
msgid "Subject: %s"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: contact-form-7/includes/contact-form.php:852
|
419 |
+
#: contact-form-7/includes/contact-form.php:867
|
420 |
msgid "Message Body:"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: contact-form-7/includes/contact-form.php:853
|
424 |
+
#: contact-form-7/includes/contact-form.php:868
|
425 |
#, php-format
|
426 |
msgid "This e-mail was sent from a contact form on %1$s (%2$s)"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: contact-form-7/includes/contact-form.php:891
|
430 |
msgid "Sender's message was sent successfully"
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: contact-form-7/includes/contact-form.php:892
|
434 |
msgid "Your message was sent successfully. Thanks."
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: contact-form-7/includes/contact-form.php:896
|
438 |
msgid "Sender's message was failed to send"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: contact-form-7/includes/contact-form.php:897
|
442 |
+
#: contact-form-7/includes/contact-form.php:907
|
443 |
msgid ""
|
444 |
"Failed to send your message. Please try later or contact the administrator "
|
445 |
"by another method."
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: contact-form-7/includes/contact-form.php:901
|
449 |
msgid "Validation errors occurred"
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: contact-form-7/includes/contact-form.php:902
|
453 |
msgid ""
|
454 |
"Validation errors occurred. Please confirm the fields and submit it again."
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: contact-form-7/includes/contact-form.php:906
|
458 |
msgid "Submission was referred to as spam"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: contact-form-7/includes/contact-form.php:911
|
462 |
msgid "There are terms that the sender must accept"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: contact-form-7/includes/contact-form.php:912
|
466 |
msgid "Please accept the terms to proceed."
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: contact-form-7/includes/contact-form.php:916
|
470 |
msgid "There is a field that the sender must fill in"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: contact-form-7/includes/contact-form.php:917
|
474 |
msgid "Please fill the required field."
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: contact-form-7/includes/controller.php:205
|
478 |
msgid "Sending ..."
|
479 |
msgstr ""
|
480 |
|
736 |
|
737 |
#: contact-form-7/modules/acceptance.php:146
|
738 |
#: contact-form-7/modules/captcha.php:210
|
739 |
+
#: contact-form-7/modules/checkbox.php:289 contact-form-7/modules/date.php:164
|
740 |
#: contact-form-7/modules/file.php:240 contact-form-7/modules/number.php:174
|
741 |
#: contact-form-7/modules/quiz.php:171 contact-form-7/modules/select.php:161
|
742 |
#: contact-form-7/modules/text.php:217 contact-form-7/modules/textarea.php:116
|
754 |
#: contact-form-7/modules/captcha.php:246
|
755 |
#: contact-form-7/modules/captcha.php:251
|
756 |
#: contact-form-7/modules/captcha.php:254
|
757 |
+
#: contact-form-7/modules/checkbox.php:294
|
758 |
+
#: contact-form-7/modules/checkbox.php:297 contact-form-7/modules/date.php:169
|
759 |
#: contact-form-7/modules/date.php:172 contact-form-7/modules/date.php:177
|
760 |
#: contact-form-7/modules/date.php:180 contact-form-7/modules/date.php:185
|
761 |
#: contact-form-7/modules/date.php:190 contact-form-7/modules/file.php:245
|
794 |
|
795 |
#: contact-form-7/modules/acceptance.php:167
|
796 |
#: contact-form-7/modules/captcha.php:259
|
797 |
+
#: contact-form-7/modules/checkbox.php:317 contact-form-7/modules/date.php:198
|
798 |
#: contact-form-7/modules/file.php:261 contact-form-7/modules/number.php:208
|
799 |
#: contact-form-7/modules/quiz.php:199 contact-form-7/modules/select.php:186
|
800 |
#: contact-form-7/modules/submit.php:74 contact-form-7/modules/text.php:260
|
878 |
"and FreeType) are not available on your server."
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: contact-form-7/modules/checkbox.php:262
|
882 |
msgid "Checkboxes"
|
883 |
msgstr ""
|
884 |
|
885 |
+
#: contact-form-7/modules/checkbox.php:265
|
886 |
msgid "Radio buttons"
|
887 |
msgstr ""
|
888 |
|
889 |
+
#: contact-form-7/modules/checkbox.php:286 contact-form-7/modules/date.php:163
|
890 |
#: contact-form-7/modules/file.php:239 contact-form-7/modules/number.php:173
|
891 |
#: contact-form-7/modules/select.php:160 contact-form-7/modules/text.php:216
|
892 |
#: contact-form-7/modules/textarea.php:115
|
893 |
msgid "Required field?"
|
894 |
msgstr ""
|
895 |
|
896 |
+
#: contact-form-7/modules/checkbox.php:302
|
897 |
#: contact-form-7/modules/select.php:174
|
898 |
msgid "Choices"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: contact-form-7/modules/checkbox.php:304
|
902 |
#: contact-form-7/modules/select.php:176
|
903 |
msgid "* One choice per line."
|
904 |
msgstr ""
|
905 |
|
906 |
+
#: contact-form-7/modules/checkbox.php:308
|
907 |
msgid "Put a label first, a checkbox last?"
|
908 |
msgstr ""
|
909 |
|
910 |
+
#: contact-form-7/modules/checkbox.php:309
|
911 |
msgid "Wrap each item with <label> tag?"
|
912 |
msgstr ""
|
913 |
|
914 |
+
#: contact-form-7/modules/checkbox.php:311
|
915 |
msgid "Make checkboxes exclusive?"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: contact-form-7/modules/checkbox.php:319 contact-form-7/modules/date.php:200
|
919 |
#: contact-form-7/modules/number.php:210 contact-form-7/modules/select.php:188
|
920 |
#: contact-form-7/modules/text.php:262 contact-form-7/modules/textarea.php:152
|
921 |
msgid "And, put this code into the Mail fields below."
|
modules/captcha.php
CHANGED
@@ -435,6 +435,8 @@ function wpcf7_remove_captcha( $prefix ) {
|
|
435 |
$captcha->remove( $prefix );
|
436 |
}
|
437 |
|
|
|
|
|
438 |
function wpcf7_cleanup_captcha_files() {
|
439 |
if ( ! $captcha = wpcf7_init_captcha() ) {
|
440 |
return false;
|
@@ -461,9 +463,6 @@ function wpcf7_cleanup_captcha_files() {
|
|
461 |
}
|
462 |
}
|
463 |
|
464 |
-
if ( ! is_admin() && 'GET' == $_SERVER['REQUEST_METHOD'] )
|
465 |
-
wpcf7_cleanup_captcha_files();
|
466 |
-
|
467 |
function wpcf7_captchac_options( $options ) {
|
468 |
if ( ! is_array( $options ) )
|
469 |
return array();
|
435 |
$captcha->remove( $prefix );
|
436 |
}
|
437 |
|
438 |
+
add_action( 'template_redirect', 'wpcf7_cleanup_captcha_files', 20 );
|
439 |
+
|
440 |
function wpcf7_cleanup_captcha_files() {
|
441 |
if ( ! $captcha = wpcf7_init_captcha() ) {
|
442 |
return false;
|
463 |
}
|
464 |
}
|
465 |
|
|
|
|
|
|
|
466 |
function wpcf7_captchac_options( $options ) {
|
467 |
if ( ! is_array( $options ) )
|
468 |
return array();
|
modules/checkbox.php
CHANGED
@@ -226,6 +226,7 @@ function wpcf7_checkbox_posted_data( $posted_data ) {
|
|
226 |
}
|
227 |
|
228 |
$last = array_pop( $values );
|
|
|
229 |
|
230 |
if ( in_array( $last, $posted_items ) ) {
|
231 |
$posted_items = array_diff( $posted_items, array( $last ) );
|
226 |
}
|
227 |
|
228 |
$last = array_pop( $values );
|
229 |
+
$last = html_entity_decode( $last, ENT_QUOTES, 'UTF-8' );
|
230 |
|
231 |
if ( in_array( $last, $posted_items ) ) {
|
232 |
$posted_items = array_diff( $posted_items, array( $last ) );
|
modules/file.php
CHANGED
@@ -317,7 +317,7 @@ function wpcf7_upload_tmp_dir() {
|
|
317 |
return wpcf7_upload_dir( 'dir' ) . '/wpcf7_uploads';
|
318 |
}
|
319 |
|
320 |
-
add_action( 'template_redirect', 'wpcf7_cleanup_upload_files' );
|
321 |
|
322 |
function wpcf7_cleanup_upload_files() {
|
323 |
if ( is_admin() || 'GET' != $_SERVER['REQUEST_METHOD']
|
317 |
return wpcf7_upload_dir( 'dir' ) . '/wpcf7_uploads';
|
318 |
}
|
319 |
|
320 |
+
add_action( 'template_redirect', 'wpcf7_cleanup_upload_files', 20 );
|
321 |
|
322 |
function wpcf7_cleanup_upload_files() {
|
323 |
if ( is_admin() || 'GET' != $_SERVER['REQUEST_METHOD']
|
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.8
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -126,11 +126,11 @@ For more information, see [Releases](http://contactform7.com/category/releases/)
|
|
126 |
|
127 |
= 3.9 =
|
128 |
|
129 |
-
* A major change has been made to the internal structure
|
130 |
* The exclude_blank mail option has been introduced.
|
131 |
* The wpcf7_load_js and wpcf7_load_css (functions and filter hooks) have been introduced.
|
132 |
* The jQuery Form Plugin (jquery.form.js) has been updated to 3.51.0.
|
133 |
-
*
|
134 |
* WordPress 3.8 or higher is required.
|
135 |
|
136 |
= 3.8.1 =
|
4 |
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 3.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
126 |
|
127 |
= 3.9 =
|
128 |
|
129 |
+
* 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/).
|
130 |
* The exclude_blank mail option has been introduced.
|
131 |
* The wpcf7_load_js and wpcf7_load_css (functions and filter hooks) have been introduced.
|
132 |
* The jQuery Form Plugin (jquery.form.js) has been updated to 3.51.0.
|
133 |
+
* Translations for Persian and Slovak have been updated.
|
134 |
* WordPress 3.8 or higher is required.
|
135 |
|
136 |
= 3.8.1 =
|
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: 3.9
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2007-2014 Takayuki Miyoshi (email: takayukister at gmail.com)
|
@@ -27,7 +27,7 @@ Version: 3.9-beta
|
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
*/
|
29 |
|
30 |
-
define( 'WPCF7_VERSION', '3.9
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.8' );
|
33 |
|
7 |
Author URI: http://ideasilo.wordpress.com/
|
8 |
Text Domain: contact-form-7
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 3.9
|
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', '3.9' );
|
31 |
|
32 |
define( 'WPCF7_REQUIRED_WP_VERSION', '3.8' );
|
33 |
|