MW WP Form - Version 2.4.4

Version Description

  • Bugfix : Fixed a conv_half_alphanumeric attribute bug.
Download this release

Release Info

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

Code changes from version 2.4.3 to 2.4.4

classes/form-fields/class.tel.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Tel
4
  * Description: 電話番号フィールドを出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -58,9 +58,9 @@ class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
58
  if ( is_null( $value ) ) {
59
  $value = $this->atts['value'];
60
  }
61
- $conv_half_alphanumeric = false;
62
- if ( $this->atts['conv_half_alphanumeric'] === 'true' ) {
63
- $conv_half_alphanumeric = true;
64
  }
65
 
66
  $_ret = $this->Form->tel( $this->atts['name'], array(
2
  /**
3
  * Name : MW WP Form Field Tel
4
  * Description: 電話番号フィールドを出力
5
+ * Version : 1.5.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : April 10, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
58
  if ( is_null( $value ) ) {
59
  $value = $this->atts['value'];
60
  }
61
+ $conv_half_alphanumeric = 'true';
62
+ if ( $this->atts['conv_half_alphanumeric'] !== 'true' ) {
63
+ $conv_half_alphanumeric = null;
64
  }
65
 
66
  $_ret = $this->Form->tel( $this->atts['name'], array(
classes/form-fields/class.text.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Text
4
  * Description: テキストフィールドを出力
5
- * Version : 1.5.2
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
  */
@@ -55,6 +55,7 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
55
  * @return string html
56
  */
57
  protected function input_page() {
 
58
  if ( $this->atts['conv_half_alphanumeric'] !== 'true' ) {
59
  $conv_half_alphanumeric = null;
60
  }
2
  /**
3
  * Name : MW WP Form Field Text
4
  * Description: テキストフィールドを出力
5
+ * Version : 1.5.3
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : April 10, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
55
  * @return string html
56
  */
57
  protected function input_page() {
58
+ $conv_half_alphanumeric = 'true';
59
  if ( $this->atts['conv_half_alphanumeric'] !== 'true' ) {
60
  $conv_half_alphanumeric = null;
61
  }
classes/form-fields/class.zip.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Zip
4
  * Description: 郵便番号フィールドを出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -58,9 +58,9 @@ class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
58
  if ( is_null( $value ) ) {
59
  $value = $this->atts['value'];
60
  }
61
- $conv_half_alphanumeric = false;
62
- if ( $this->atts['conv_half_alphanumeric'] === 'true' ) {
63
- $conv_half_alphanumeric = true;
64
  }
65
  $_ret = $this->Form->zip( $this->atts['name'], array(
66
  'conv-half-alphanumeric' => $conv_half_alphanumeric,
2
  /**
3
  * Name : MW WP Form Field Zip
4
  * Description: 郵便番号フィールドを出力
5
+ * Version : 1.5.1
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : April 10, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
58
  if ( is_null( $value ) ) {
59
  $value = $this->atts['value'];
60
  }
61
+ $conv_half_alphanumeric = 'true';
62
+ if ( $this->atts['conv_half_alphanumeric'] !== 'true' ) {
63
+ $conv_half_alphanumeric = null;
64
  }
65
  $_ret = $this->Form->zip( $this->atts['name'], array(
66
  'conv-half-alphanumeric' => $conv_half_alphanumeric,
classes/models/class.form.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Form
4
  * Description: フォームヘルパー
5
- * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : September 25, 2012
9
- * Modified : March 26, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -617,15 +617,19 @@ class MW_WP_Form_Form {
617
 
618
  /**
619
  * タグの属性を最適化して生成する
 
620
  *
621
  * @param array $_attributes キーが属性名、要素が属性値の配列。要素が null のときは無視する
622
  */
623
- protected function generate_attributes( array $_attributes ) {
624
  $attributes = array();
625
  foreach ( $_attributes as $key => $value ) {
626
  if ( is_null( $value ) ) {
627
  continue;
628
  }
 
 
 
629
  $attributes[] = sprintf( '%s="%s"', $key, esc_attr( $value ) );
630
  }
631
  $attributes = implode( ' ', $attributes );
2
  /**
3
  * Name : MW WP Form Form
4
  * Description: フォームヘルパー
5
+ * Version : 1.6.1
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : September 25, 2012
9
+ * Modified : April 10, 2015
10
  * License : GPLv2
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
617
 
618
  /**
619
  * タグの属性を最適化して生成する
620
+ * ※テストしやすいようにアクセス修飾子を public に
621
  *
622
  * @param array $_attributes キーが属性名、要素が属性値の配列。要素が null のときは無視する
623
  */
624
+ public function generate_attributes( array $_attributes ) {
625
  $attributes = array();
626
  foreach ( $_attributes as $key => $value ) {
627
  if ( is_null( $value ) ) {
628
  continue;
629
  }
630
+ if ( $key === 'conv-half-alphanumeric' ) {
631
+ $key = 'data-conv-half-alphanumeric';
632
+ }
633
  $attributes[] = sprintf( '%s="%s"', $key, esc_attr( $value ) );
634
  }
635
  $attributes = implode( ' ', $attributes );
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.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: April 8, 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.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 10, 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.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,7 +71,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
71
 
72
  == Changelog ==
73
 
74
- = 2.4.2 =
 
 
 
75
  * Changed : Changed visibility of MW_WP_Form_Validation::set_rule() protected to public.
76
 
77
  = 2.4.2 =
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.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 2.4.4 =
75
+ * Bugfix : Fixed a conv_half_alphanumeric attribute bug.
76
+
77
+ = 2.4.3 =
78
  * Changed : Changed visibility of MW_WP_Form_Validation::set_rule() protected to public.
79
 
80
  = 2.4.2 =