MW WP Form - Version 1.1.5

Version Description

  • Bug fix : $MW_Mail->createBody()
Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.5

Files changed (3) hide show
  1. mw-wp-form.php +2 -2
  2. readme.txt +3 -0
  3. system/mw_mail.php +10 -8
mw-wp-form.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
- * Version: 1.1.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: November 28, 2013
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
+ * Version: 1.1.5
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: December 2, 2013
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
readme.txt CHANGED
@@ -37,6 +37,9 @@ http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
37
 
38
  == Changelog ==
39
 
 
 
 
40
  = 1.1.4 =
41
  * Changed : 設定を読み込むため際、無駄な do_shortcode() が行われないように修正
42
  * Bug fix : チェックボックスの値が送信されないバグ修正
37
 
38
  == Changelog ==
39
 
40
+ = 1.1.5 =
41
+ * Bug fix : $MW_Mail->createBody()のバグ修正
42
+
43
  = 1.1.4 =
44
  * Changed : 設定を読み込むため際、無駄な do_shortcode() が行われないように修正
45
  * Bug fix : チェックボックスの値が送信されないバグ修正
system/mw_mail.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Mail
4
  * URI: http://2inc.org
5
  * Description: メールクラス
6
- * Version: 1.3.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: July 20, 2012
10
- * Modified: September 13, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -80,19 +80,21 @@ class MW_Mail {
80
  );
81
  $options = array_merge( $defaults, $options );
82
  foreach( $array as $key => $value ) {
83
- if ( in_array( $key, $options['exclude'] ) ) continue;
84
- if ( isset( $value['separator'] ) && is_array( $value ) ) {
85
- if ( isset( $value['data'] ) && is_array( $value['data'] ) ) {
 
 
86
  foreach ( $value['data'] as $_val ) {
87
  if ( !( $_val === '' || $_val === null ) ) {
88
- $value = implode( $value['separator'], $value['data'] );
89
  break;
90
  }
91
- $value = '';
92
  }
93
  } else {
94
- continue;
95
  }
 
96
  }
97
  if ( $value )
98
  $_ret .= sprintf( "▼%s\n%s\n\n", esc_html( $key ), esc_html( $value ) );
3
  * Name: MW Mail
4
  * URI: http://2inc.org
5
  * Description: メールクラス
6
+ * Version: 1.3.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: July 20, 2012
10
+ * Modified: December 2, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
80
  );
81
  $options = array_merge( $defaults, $options );
82
  foreach( $array as $key => $value ) {
83
+ if ( in_array( $key, $options['exclude'] ) )
84
+ continue;
85
+ if ( is_array( $value ) && isset( $value['separator'], $value['data'] ) ) {
86
+ $_value = '';
87
+ if ( is_array( $value['data'] ) ) {
88
  foreach ( $value['data'] as $_val ) {
89
  if ( !( $_val === '' || $_val === null ) ) {
90
+ $_value = implode( $value['separator'], $value['data'] );
91
  break;
92
  }
 
93
  }
94
  } else {
95
+ $_value = $value['data'];
96
  }
97
+ $value = $_value;
98
  }
99
  if ( $value )
100
  $_ret .= sprintf( "▼%s\n%s\n\n", esc_html( $key ), esc_html( $value ) );