MW WP Form - Version 2.4.2

Version Description

  • Bugfix : Fixed a hidden field bug.
Download this release

Release Info

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

Code changes from version 2.4.1 to 2.4.2

classes/controllers/class.contact-data-list.php CHANGED
@@ -119,7 +119,7 @@ class MW_WP_Form_Contact_Data_List_Controller extends MW_WP_Form_Controller {
119
  $_columns = array();
120
  foreach ( $posts as $post ) {
121
  $post_custom_keys = get_post_custom_keys( $post->ID );
122
- if ( ! empty( $post_custom_keys ) && is_array( $post_custom_keys ) ) {
123
  foreach ( $post_custom_keys as $key ) {
124
  if ( preg_match( '/^_/', $key ) ) {
125
  continue;
119
  $_columns = array();
120
  foreach ( $posts as $post ) {
121
  $post_custom_keys = get_post_custom_keys( $post->ID );
122
+ if ( !empty( $post_custom_keys ) && is_array( $post_custom_keys ) ) {
123
  foreach ( $post_custom_keys as $key ) {
124
  if ( preg_match( '/^_/', $key ) ) {
125
  continue;
classes/form-fields/class.hidden.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Hidden
4
  * Description: hiddenフィールドを出力
5
- * Version : 1.6.1
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
  */
@@ -43,14 +43,16 @@ class MW_WP_Form_Field_Hidden extends MW_WP_Form_Abstract_Form_Field {
43
  * @return string HTML
44
  */
45
  protected function input_page() {
46
- $value = '';
47
- if ( $this->atts['echo'] === 'true' ) {
48
  $value = $this->atts['value'];
49
  }
50
- if ( is_null( $value ) ) {
51
- $value = $this->get_raw( $this->atts['name'] );
 
 
52
  }
53
- return esc_html( $value ) . $this->Form->hidden( $this->atts['name'], $value );
54
  }
55
 
56
  /**
2
  /**
3
  * Name : MW WP Form Hidden
4
  * Description: hiddenフィールドを出力
5
+ * Version : 1.6.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : April 7, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
43
  * @return string HTML
44
  */
45
  protected function input_page() {
46
+ $value = $this->Data->get_raw( $this->atts['name'] );
47
+ if ( is_null( $value ) ) {
48
  $value = $this->atts['value'];
49
  }
50
+
51
+ $echo = '';
52
+ if ( $this->atts['echo'] === 'true' ) {
53
+ $echo = $value;
54
  }
55
+ return esc_html( $echo ) . $this->Form->hidden( $this->atts['name'], $value );
56
  }
57
 
58
  /**
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.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: April 5, 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.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 7, 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.4.1
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.4.1 =
75
  * Bugfix : Fixed a mwform_csv_encoding-mwf_xxx bug.
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.4.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 2.4.2 =
75
+ * Bugfix : Fixed a hidden field bug.
76
+
77
  = 2.4.1 =
78
  * Bugfix : Fixed a mwform_csv_encoding-mwf_xxx bug.
79