MW WP Form - Version 1.3.2

Version Description

  • Buf fix : Fix session has already started.
Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

Files changed (3) hide show
  1. mw-wp-form.php +2 -2
  2. readme.txt +4 -1
  3. system/mw_session.php +7 -7
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 can create mail form with a confirmation screen.
6
- * Version: 1.3.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: January 15, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
+ * Version: 1.3.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: January 29, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode
5
  Requires at least: 3.4
6
  Tested up to: 3.8.0
7
- Stable tag: 1.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -47,6 +47,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.3.1 =
51
  * Added : Support attribute id in text, textarea, radio, checkbox, select, datepicker, file, image, password shortcode.
52
  * Added : Support attribute placeholder in password shortcode.
4
  Tags: plugin, form, confirm, preview, shortcode
5
  Requires at least: 3.4
6
  Tested up to: 3.8.0
7
+ Stable tag: 1.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.3.2 =
51
+ * Buf fix : Fix session has already started.
52
+
53
  = 1.3.1 =
54
  * Added : Support attribute id in text, textarea, radio, checkbox, select, datepicker, file, image, password shortcode.
55
  * Added : Support attribute placeholder in password shortcode.
system/mw_session.php CHANGED
@@ -3,14 +3,14 @@
3
  * Name: MW Session
4
  * URI: http://2inc.org
5
  * Description: セッションクラス
6
- * Version: 1.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
- * Created: July 17, 2012
10
- * Modified: May 29, 2013
11
  * License: GPL2
12
  *
13
- * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
@@ -38,11 +38,11 @@ class MW_Session {
38
  /**
39
  * start
40
  * インスタンス化
41
- * @param String 擬似セッション名
42
- * @return Session Sessionオブジェクト
43
  */
44
  public static function start( $name ) {
45
- if ( self::$session == null ){
46
  session_name( self::$sessionName );
47
  session_set_cookie_params( 0, '/' );
48
  session_start();
3
  * Name: MW Session
4
  * URI: http://2inc.org
5
  * Description: セッションクラス
6
+ * Version: 1.2.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
+ * Created : July 17, 2012
10
+ * Modified: January 29, 2013
11
  * License: GPL2
12
  *
13
+ * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License, version 2, as
38
  /**
39
  * start
40
  * インスタンス化
41
+ * @param string 擬似セッション名
42
+ * @return Session Sessionオブジェクト
43
  */
44
  public static function start( $name ) {
45
+ if ( self::$session == null && !isset( $_SESSION ) ){
46
  session_name( self::$sessionName );
47
  session_set_cookie_params( 0, '/' );
48
  session_start();