MW WP Form - Version 1.5.2

Version Description

  • Bug fix : Datapicker starting a new line.
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

Files changed (3) hide show
  1. mw-wp-form.php +4 -4
  2. readme.txt +4 -1
  3. system/mw_form.php +6 -6
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.5.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: April 5, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
@@ -333,8 +333,8 @@ class mw_wp_form {
333
  add_shortcode( 'mwform', array( $this, '_mwform' ) );
334
  add_shortcode( 'mwform_complete_message', array( $this, '_mwform_complete_message' ) );
335
  add_action( 'wp_footer', array( $this->Data, 'clearValues' ) );
336
- add_action( 'wp_print_styles', array( $this, 'original_style' ) );
337
- add_action( 'wp_print_scripts', array( $this, 'original_script' ) );
338
  return $template;
339
  }
340
 
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.5.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 6, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
333
  add_shortcode( 'mwform', array( $this, '_mwform' ) );
334
  add_shortcode( 'mwform_complete_message', array( $this, '_mwform_complete_message' ) );
335
  add_action( 'wp_footer', array( $this->Data, 'clearValues' ) );
336
+ add_action( 'wp_enqueue_scripts', array( $this, 'original_style' ) );
337
+ add_action( 'wp_enqueue_scripts', array( $this, 'original_script' ) );
338
  return $template;
339
  }
340
 
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
5
  Requires at least: 3.4
6
  Tested up to: 3.8.1
7
- Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -54,6 +54,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.5.1 =
58
  * Bug fix : Fix wpautop bug.
59
 
4
  Tags: plugin, form, confirm, preview, shortcode, mail
5
  Requires at least: 3.4
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.5.2 =
58
+ * Bug fix : Datapicker starting a new line.
59
+
60
  = 1.5.1 =
61
  * Bug fix : Fix wpautop bug.
62
 
system/mw_form.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Form
4
  * URI: http://2inc.org
5
  * Description: フォームクラス
6
- * Version: 1.3.10
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: January 16, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
@@ -721,13 +721,13 @@ class MW_Form {
721
  $_ret = sprintf( '<input type="text" name="%s" value="%s" size="%d" %s />',
722
  esc_attr( $name ), esc_attr( $value ), esc_attr( $options['size'] ), $id
723
  );
724
- $_ret .= sprintf( '
725
- <script type="text/javascript">
726
  jQuery( function( $ ) {
727
  $("input[name=\'%s\']").datepicker({%s});
728
  } );
729
- </script>
730
- ', esc_html( $name ), $options['js'] );
731
  return $_ret;
732
  }
733
 
3
  * Name: MW Form
4
  * URI: http://2inc.org
5
  * Description: フォームクラス
6
+ * Version: 1.3.11
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 5, 2014
11
  * License: GPL2
12
  *
13
  * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
721
  $_ret = sprintf( '<input type="text" name="%s" value="%s" size="%d" %s />',
722
  esc_attr( $name ), esc_attr( $value ), esc_attr( $options['size'] ), $id
723
  );
724
+ $_ret .= sprintf(
725
+ '<script type="text/javascript">
726
  jQuery( function( $ ) {
727
  $("input[name=\'%s\']").datepicker({%s});
728
  } );
729
+ </script>'
730
+ , esc_html( $name ), $options['js'] );
731
  return $_ret;
732
  }
733