MW WP Form - Version 2.3.4

Version Description

  • Bugfix : Fixed a bug that checkboxes are checked when children are added by hook.
Download this release

Release Info

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

Code changes from version 2.3.3 to 2.3.4

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.6
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : February 28, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -56,7 +56,7 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
56
  */
57
  protected function input_page() {
58
  $children = $this->get_children( $this->atts['children'] );
59
- $value = $this->get_children( $this->atts['value'] );
60
  $separator = ( $this->atts['separator'] ) ? $this->atts['separator'] : $this->defaults['separator'];
61
  $_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
62
  'id' => $this->atts['id'],
2
  /**
3
  * Name : MW WP Form Field Checkbox
4
  * Description: チェックボックスを出力
5
+ * Version : 1.5.7
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : March 18, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
56
  */
57
  protected function input_page() {
58
  $children = $this->get_children( $this->atts['children'] );
59
+ $value = $_children = explode( ',', $this->atts['value'] );
60
  $separator = ( $this->atts['separator'] ) ? $this->atts['separator'] : $this->defaults['separator'];
61
  $_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
62
  'id' => $this->atts['id'],
classes/models/class.form.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Form
4
  * Description: フォームヘルパー
5
- * Version : 1.5.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : September 25, 2012
9
- * Modified : January 22, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -531,11 +531,16 @@ class MW_WP_Form_Form {
531
  $value = $this->get_raw( $name );
532
  if ( is_array( $value ) && isset( $value['data'] ) ) {
533
  $value = $value['data'];
 
 
 
 
534
  } else {
535
  $value = $options['value'];
536
- }
537
- if ( !is_array( $value ) ) {
538
- $value = explode( $separator, $value );
 
539
  }
540
 
541
  $i = 0;
2
  /**
3
  * Name : MW WP Form Form
4
  * Description: フォームヘルパー
5
+ * Version : 1.5.3
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : September 25, 2012
9
+ * Modified : March 18, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
531
  $value = $this->get_raw( $name );
532
  if ( is_array( $value ) && isset( $value['data'] ) ) {
533
  $value = $value['data'];
534
+ // 送信された後の画面の場合は、送信された separator で区切る
535
+ if ( !is_array( $value ) ) {
536
+ $value = explode( $separator, $value );
537
+ }
538
  } else {
539
  $value = $options['value'];
540
+ // 最初の画面(post無し)の場合は、管理画面上で children が,区切りとなっている
541
+ if ( !is_array( $value ) ) {
542
+ $value = explode( ',', $value );
543
+ }
544
  }
545
 
546
  $i = 0;
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.3.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: March 10, 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.3.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: March 18, 2015
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.3.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 2.3.3 =
75
  * Bugfix : Fixed a bug that tracking number does not count up.
76
 
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.3.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 2.3.4 =
75
+ * Bugfix : Fixed a bug that checkboxes are checked when children are added by hook.
76
+
77
  = 2.3.3 =
78
  * Bugfix : Fixed a bug that tracking number does not count up.
79