Version Description
- Bugfix : Fixed a json parser bug.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 2.8.2 |
Comparing to | |
See all releases |
Code changes from version 2.8.1 to 2.8.2
- classes/models/class.json-parser.php +13 -3
- mw-wp-form.php +2 -2
- readme.txt +5 -2
classes/models/class.json-parser.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Json Parser
|
4 |
* Description: ショートコードから渡される json を正しい形式に変換
|
5 |
-
* Version : 1.0.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : April 3, 2016
|
9 |
-
* Modified :
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -159,7 +159,17 @@ class MW_WP_Form_Json_Parser {
|
|
159 |
if ( isset( $param['value'] ) ) {
|
160 |
$value = $param['value'];
|
161 |
}
|
162 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
}
|
164 |
return json_encode( $js );
|
165 |
}
|
2 |
/**
|
3 |
* Name : MW WP Form Json Parser
|
4 |
* Description: ショートコードから渡される json を正しい形式に変換
|
5 |
+
* Version : 1.0.1
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : April 3, 2016
|
9 |
+
* Modified : April 5, 2016
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
159 |
if ( isset( $param['value'] ) ) {
|
160 |
$value = $param['value'];
|
161 |
}
|
162 |
+
$value = trim( $value );
|
163 |
+
if ( preg_match( '/^[\-\+]?[\d]+$/', $value ) ) {
|
164 |
+
$value = (int) $value;
|
165 |
+
} elseif ( $value === mb_strtolower( 'true' ) ) {
|
166 |
+
$value = true;
|
167 |
+
} elseif ( $value === mb_strtolower( 'false' ) ) {
|
168 |
+
$value = false;
|
169 |
+
} elseif ( $value === mb_strtolower( 'null' ) ) {
|
170 |
+
$value = null;
|
171 |
+
}
|
172 |
+
$js[ trim( $key ) ] = $value;
|
173 |
}
|
174 |
return json_encode( $js );
|
175 |
}
|
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: April
|
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.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: April 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.4.
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -79,6 +79,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
82 |
= 2.8.1 =
|
83 |
* Added : Added MinImageSize validation.
|
84 |
* Added : Added MaxImageSize validation.
|
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.4.2
|
7 |
+
Stable tag: 2.8.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 2.8.2 =
|
83 |
+
* Bugfix : Fixed a json parser bug.
|
84 |
+
|
85 |
= 2.8.1 =
|
86 |
* Added : Added MinImageSize validation.
|
87 |
* Added : Added MaxImageSize validation.
|