Version Description
- Added : Added the upload failure of the error message in filesize validation.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 2.8.3 |
Comparing to | |
See all releases |
Code changes from version 2.8.2 to 2.8.3
- classes/validation-rules/class.filesize.php +5 -3
- classes/validation-rules/class.filetype.php +1 -1
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +9 -5
- languages/mw-wp-form.pot +8 -4
- mw-wp-form.php +2 -2
- readme.txt +8 -4
classes/validation-rules/class.filesize.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Validation Rule FileSize
|
4 |
* Description: ファイルサイズが指定したサイズ以内
|
5 |
-
* Version : 1.1.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
-
* Modified :
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -38,6 +38,8 @@ class MW_WP_Form_Validation_Rule_FileSize extends MW_WP_Form_Abstract_Validation
|
|
38 |
if ( !( preg_match( '/^[\d]+$/', $options['bytes'] ) && $options['bytes'] >= $file['size'] ) ) {
|
39 |
return $options['message'];
|
40 |
}
|
|
|
|
|
41 |
}
|
42 |
}
|
43 |
}
|
@@ -62,4 +64,4 @@ class MW_WP_Form_Validation_Rule_FileSize extends MW_WP_Form_Abstract_Validation
|
|
62 |
</table>
|
63 |
<?php
|
64 |
}
|
65 |
-
}
|
2 |
/**
|
3 |
* Name : MW WP Form Validation Rule FileSize
|
4 |
* Description: ファイルサイズが指定したサイズ以内
|
5 |
+
* Version : 1.1.2
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
+
* Modified : July 6, 2016
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
38 |
if ( !( preg_match( '/^[\d]+$/', $options['bytes'] ) && $options['bytes'] >= $file['size'] ) ) {
|
39 |
return $options['message'];
|
40 |
}
|
41 |
+
} elseif ( !empty( $file['error'] ) && $file['error'] == 1 ) {
|
42 |
+
return __( 'Failed to upload the file.', 'mw-wp-form' );
|
43 |
}
|
44 |
}
|
45 |
}
|
64 |
</table>
|
65 |
<?php
|
66 |
}
|
67 |
+
}
|
classes/validation-rules/class.filetype.php
CHANGED
@@ -65,4 +65,4 @@ class MW_WP_Form_Validation_Rule_FileType extends MW_WP_Form_Abstract_Validation
|
|
65 |
</table>
|
66 |
<?php
|
67 |
}
|
68 |
-
}
|
65 |
</table>
|
66 |
<?php
|
67 |
}
|
68 |
+
}
|
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 2.8.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
-
"PO-Revision-Date: 2016-
|
9 |
"Last-Translator: inc2734 <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
@@ -413,11 +413,15 @@ msgstr "一致する項目"
|
|
413 |
msgid "This file size is too big."
|
414 |
msgstr "ファイルサイズが大きすぎます。"
|
415 |
|
416 |
-
#: classes/validation-rules/class.filesize.php:
|
|
|
|
|
|
|
|
|
417 |
msgid "Permitted file size"
|
418 |
msgstr "サイズ制限"
|
419 |
|
420 |
-
#: classes/validation-rules/class.filesize.php:
|
421 |
msgid "bytes"
|
422 |
msgstr "バイト"
|
423 |
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 2.8.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2016-07-06 14:18+0900\n"
|
8 |
+
"PO-Revision-Date: 2016-07-06 14:18+0900\n"
|
9 |
"Last-Translator: inc2734 <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
413 |
msgid "This file size is too big."
|
414 |
msgstr "ファイルサイズが大きすぎます。"
|
415 |
|
416 |
+
#: classes/validation-rules/class.filesize.php:42
|
417 |
+
msgid "Failed to upload the file."
|
418 |
+
msgstr "ファイルのアップロードに失敗しました。"
|
419 |
+
|
420 |
+
#: classes/validation-rules/class.filesize.php:61
|
421 |
msgid "Permitted file size"
|
422 |
msgstr "サイズ制限"
|
423 |
|
424 |
+
#: classes/validation-rules/class.filesize.php:62
|
425 |
msgid "bytes"
|
426 |
msgstr "バイト"
|
427 |
|
languages/mw-wp-form.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 2.8.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2016-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -401,11 +401,15 @@ msgstr ""
|
|
401 |
msgid "This file size is too big."
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: classes/validation-rules/class.filesize.php:
|
|
|
|
|
|
|
|
|
405 |
msgid "Permitted file size"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: classes/validation-rules/class.filesize.php:
|
409 |
msgid "bytes"
|
410 |
msgstr ""
|
411 |
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 2.8.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2016-07-06 05:17:47+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
401 |
msgid "This file size is too big."
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: classes/validation-rules/class.filesize.php:42
|
405 |
+
msgid "Failed to upload the file."
|
406 |
+
msgstr ""
|
407 |
+
|
408 |
+
#: classes/validation-rules/class.filesize.php:61
|
409 |
msgid "Permitted file size"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: classes/validation-rules/class.filesize.php:62
|
413 |
msgid "bytes"
|
414 |
msgstr ""
|
415 |
|
mw-wp-form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
|
6 |
-
* Version: 2.8.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
-
* Modified:
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2 or later
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
|
6 |
+
* Version: 2.8.3
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: July 6, 2016
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u,
|
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -54,7 +54,8 @@ Source: https://developers.google.com/chart/
|
|
54 |
* [Kazuki Tomiyasu](http://visualive.jp/) ( [KUCKLU](https://profiles.wordpress.org/kuck1u/) )
|
55 |
* [Kei Nomura](http://mypacecreator.net/) ( [mypacecreator](https://profiles.wordpress.org/mypacecreator/) )
|
56 |
* [mh35](https://profiles.wordpress.org/mh35)
|
57 |
-
* [Takashi Nojima](https://github.com/nojimage)
|
|
|
58 |
|
59 |
== Installation ==
|
60 |
|
@@ -77,7 +78,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
77 |
4. List page of inquiry data that has been saved.
|
78 |
5. Supports chart display of saved inquiry data.
|
79 |
|
80 |
-
== Changelog ==
|
|
|
|
|
|
|
81 |
|
82 |
= 2.8.2 =
|
83 |
* Bugfix : Fixed a json parser bug.
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.5.3
|
7 |
+
Stable tag: 2.8.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
54 |
* [Kazuki Tomiyasu](http://visualive.jp/) ( [KUCKLU](https://profiles.wordpress.org/kuck1u/) )
|
55 |
* [Kei Nomura](http://mypacecreator.net/) ( [mypacecreator](https://profiles.wordpress.org/mypacecreator/) )
|
56 |
* [mh35](https://profiles.wordpress.org/mh35)
|
57 |
+
* [Takashi Nojima](https://github.com/nojimage)
|
58 |
+
* [herikutu](https://github.com/herikutu)
|
59 |
|
60 |
== Installation ==
|
61 |
|
78 |
4. List page of inquiry data that has been saved.
|
79 |
5. Supports chart display of saved inquiry data.
|
80 |
|
81 |
+
== Changelog ==
|
82 |
+
|
83 |
+
= 2.8.3 =
|
84 |
+
* Added : Added the upload failure of the error message in filesize validation.
|
85 |
|
86 |
= 2.8.2 =
|
87 |
* Bugfix : Fixed a json parser bug.
|