MW WP Form - Version 2.4.8

Version Description

  • Changed : Change the value to save even null when you save the contact data.
  • Changed : Default value of radio and checkbox is null.
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin MW WP Form
Version 2.4.8
Comparing to
See all releases

Code changes from version 2.4.7 to 2.4.8

classes/form-fields/class.checkbox.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Checkbox
4
  * Description: チェックボックスを出力
5
- * Version : 1.5.9
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : April 1, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -41,7 +41,7 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
41
  'name' => '',
42
  'id' => null,
43
  'children' => '',
44
- 'value' => '',
45
  'vertically' => null,
46
  'post_raw' => 'false',
47
  'show_error' => 'true',
@@ -87,8 +87,10 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
87
  $posted_value = $this->Data->get_raw( $this->atts['name'] );
88
  $separator = $this->Data->get_separator_value( $this->atts['name'] );
89
  $_ret = esc_html( $value );
90
- $_ret .= $this->Form->hidden( $this->atts['name'] . '[data]', $posted_value );
91
- $_ret .= $this->Form->separator( $this->atts['name'], $separator );
 
 
92
  if ( $this->atts['post_raw'] === 'false' ) {
93
  $_ret .= $this->Form->children( $this->atts['name'], $children );
94
  }
2
  /**
3
  * Name : MW WP Form Field Checkbox
4
  * Description: チェックボックスを出力
5
+ * Version : 1.5.10
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : April 24, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
41
  'name' => '',
42
  'id' => null,
43
  'children' => '',
44
+ 'value' => null,
45
  'vertically' => null,
46
  'post_raw' => 'false',
47
  'show_error' => 'true',
87
  $posted_value = $this->Data->get_raw( $this->atts['name'] );
88
  $separator = $this->Data->get_separator_value( $this->atts['name'] );
89
  $_ret = esc_html( $value );
90
+ if ( !is_null( $value ) ) {
91
+ $_ret .= $this->Form->hidden( $this->atts['name'] . '[data]', $posted_value );
92
+ $_ret .= $this->Form->separator( $this->atts['name'], $separator );
93
+ }
94
  if ( $this->atts['post_raw'] === 'false' ) {
95
  $_ret .= $this->Form->children( $this->atts['name'], $children );
96
  }
classes/form-fields/class.radio.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Radio
4
  * Description: ラジオボタンを出力
5
- * Version : 1.5.6
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : March 26, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -41,7 +41,7 @@ class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
41
  'name' => '',
42
  'id' => null,
43
  'children' => '',
44
- 'value' => '',
45
  'vertically' => null,
46
  'post_raw' => 'false',
47
  'show_error' => 'true',
@@ -84,7 +84,9 @@ class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
84
  $value = $this->Data->get( $this->atts['name'], $children );
85
  $posted_value = $this->Data->get_raw( $this->atts['name'] );
86
  $_ret = esc_html( $value );
87
- $_ret .= $this->Form->hidden( $this->atts['name'], $posted_value );
 
 
88
  if ( $this->atts['post_raw'] === 'false' ) {
89
  $_ret .= $this->Form->children( $this->atts['name'], $children );
90
  }
2
  /**
3
  * Name : MW WP Form Field Radio
4
  * Description: ラジオボタンを出力
5
+ * Version : 1.5.7
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : April 24, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
41
  'name' => '',
42
  'id' => null,
43
  'children' => '',
44
+ 'value' => null,
45
  'vertically' => null,
46
  'post_raw' => 'false',
47
  'show_error' => 'true',
84
  $value = $this->Data->get( $this->atts['name'], $children );
85
  $posted_value = $this->Data->get_raw( $this->atts['name'] );
86
  $_ret = esc_html( $value );
87
+ if ( !is_null( $value ) ) {
88
+ $_ret .= $this->Form->hidden( $this->atts['name'], $posted_value );
89
+ }
90
  if ( $this->atts['post_raw'] === 'false' ) {
91
  $_ret .= $this->Form->children( $this->atts['name'], $children );
92
  }
classes/services/class.mail-parser.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Mail Parser
4
  * Description: メールパーサー
5
- * Version : 1.0.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : April 14, 2015
9
- * Modified : April 23, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -174,7 +174,9 @@ class MW_WP_Form_Mail_Parser {
174
  $value = $this->Data->get( $match );
175
  $value = $this->apply_filters_mwform_custom_mail_tag( $form_key, $value, $match );
176
  }
177
- if ( $value !== null && $do_update ) {
 
 
178
  update_post_meta( $this->insert_contact_data_id, $match, $value );
179
  }
180
  return $value;
2
  /**
3
  * Name : MW WP Form Mail Parser
4
  * Description: メールパーサー
5
+ * Version : 1.0.3
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : April 14, 2015
9
+ * Modified : April 24, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
174
  $value = $this->Data->get( $match );
175
  $value = $this->apply_filters_mwform_custom_mail_tag( $form_key, $value, $match );
176
  }
177
+
178
+ // 値が null でも保存(チェッボックス未チェックで直送信でも保存させるため)
179
+ if ( $do_update ) {
180
  update_post_meta( $this->insert_contact_data_id, $match, $value );
181
  }
182
  return $value;
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.4.7
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: April 23, 2015
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2
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.4.8
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 24, 2015
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734, ryu263
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: 3.7
6
- Tested up to: 4.1.1
7
- Stable tag: 2.4.7
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
71
 
72
  == Changelog ==
73
 
 
 
 
 
74
  = 2.4.7 =
75
  * Bugfix : Fixed a bug the custom_mail_tag from To, CC and BCC.
76
 
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: 3.7
6
+ Tested up to: 4.2
7
+ Stable tag: 2.4.8
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 2.4.8 =
75
+ * Changed : Change the value to save even null when you save the contact data.
76
+ * Changed : Default value of radio and checkbox is null.
77
+
78
  = 2.4.7 =
79
  * Bugfix : Fixed a bug the custom_mail_tag from To, CC and BCC.
80