MW WP Form - Version 4.4.1

Version Description

  • Fixed a bug that caused forms to be cached when Batcache was enabled.
  • Fix infinite redirections with asterisks.
  • Add audio/x-wav etc. as mimetype for wav.
Download this release

Release Info

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

Code changes from version 4.4.0 to 4.4.1

classes/controllers/class.main.php CHANGED
@@ -85,7 +85,7 @@ class MW_WP_Form_Main_Controller {
85
  */
86
  public function _nocache_headers( $headers ) {
87
  $headers['X-Accel-Expires'] = 0;
88
- $headers['Cache-Control'] = 'private, no-store, no-cache, must-revalidate';
89
  return $headers;
90
  }
91
 
85
  */
86
  public function _nocache_headers( $headers ) {
87
  $headers['X-Accel-Expires'] = 0;
88
+ $headers['Cache-Control'] = 'private, no-store, no-cache, must-revalidate, max-age=0';
89
  return $headers;
90
  }
91
 
classes/functions.php CHANGED
@@ -303,6 +303,14 @@ class MWF_Functions {
303
  'audio/mpeg',
304
  );
305
  break;
 
 
 
 
 
 
 
 
306
  case 'mpg':
307
  $wp_check_filetype['type'] = array(
308
  'audio/mpeg',
303
  'audio/mpeg',
304
  );
305
  break;
306
+ case 'wav':
307
+ $wp_check_filetype['type'] = array(
308
+ $wp_check_filetype['type'],
309
+ 'audio/wave',
310
+ 'audio/x-wav',
311
+ 'audio/x-pn-wav',
312
+ );
313
+ break;
314
  case 'mpg':
315
  $wp_check_filetype['type'] = array(
316
  'audio/mpeg',
classes/services/class.redirected.php CHANGED
@@ -171,7 +171,7 @@ class MW_WP_Form_Redirected {
171
  }
172
 
173
  if ( ! empty( $query_string ) ) {
174
- return $url . '?' . http_build_query( $query_string, null, '&' );
175
  }
176
 
177
  return $url;
171
  }
172
 
173
  if ( ! empty( $query_string ) ) {
174
+ return $url . '?' . build_query( $query_string );
175
  }
176
 
177
  return $url;
css/admin-list.css CHANGED
@@ -41,25 +41,4 @@ span#formkey_field {
41
  }
42
  .wp-admin li.donation div.donation p {
43
  margin: 3px 0;
44
- }
45
-
46
- /**
47
- * .column-mwform_form_key
48
- */
49
- .fixed .column-title {
50
- width: 30%;
51
- }
52
- .fixed .column-mwform_form_key {
53
- width: 30%;
54
- }
55
- .fixed .column-date {
56
- width: 20%;
57
- }
58
- @media screen and (max-width: 782px) {
59
- .fixed .column-title {
60
- width: auto;
61
- }
62
- .fixed .column-mwform_form_key {
63
- display: none;
64
- }
65
  }
41
  }
42
  .wp-admin li.donation div.donation p {
43
  margin: 3px 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
mw-wp-form.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: https://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form is shortcode base contact form plugin. This plugin have many features. For example you can use many validation rules, inquiry data saving, and chart aggregation using saved inquiry data.
6
- * Version: 4.4.0
7
  * Author: inc2734
8
  * Author URI: https://2inc.org
9
  * Text Domain: mw-wp-form
@@ -244,4 +244,4 @@ class MW_WP_Form {
244
  }
245
  }
246
 
247
- $mw_wp_form = new MW_WP_Form();
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: https://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form is shortcode base contact form plugin. This plugin have many features. For example you can use many validation rules, inquiry data saving, and chart aggregation using saved inquiry data.
6
+ * Version: 4.4.1
7
  * Author: inc2734
8
  * Author URI: https://2inc.org
9
  * Text Domain: mw-wp-form
244
  }
245
  }
246
 
247
+ new MW_WP_Form();
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === MW WP Form ===
2
- Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u, mypacecreator, mh35, grace-create, musus, wildworks
3
  Donate link: https://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: 4.0
6
- Tested up to: 5.5
7
- Stable tag: 4.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -49,7 +49,10 @@ Source: https://developers.google.com/chart/
49
  * [herikutu](https://github.com/herikutu)
50
  * [tsucharoku](https://github.com/tsucharoku)
51
  * [Tetsuaki Hamano](https://github.com/t-hamano) ( [t-hamano](https://profiles.wordpress.org/wildworks/) )
52
- * [Susumu Seino](https://github.com/musus) ( [t-hamano](https://profiles.wordpress.org/musus/) )
 
 
 
53
 
54
  == Installation ==
55
 
@@ -74,6 +77,11 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
74
 
75
  == Changelog ==
76
 
 
 
 
 
 
77
  = 4.4.0 =
78
  * Add filter hook `mwform_form_start_attr_action`.
79
  * Add maxlength attribute to textarea field arguments.
1
  === MW WP Form ===
2
+ Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u, mypacecreator, mh35, grace-create, musus, wildworks, likr, yudai524, noldorinfo
3
  Donate link: https://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: 4.0
6
+ Tested up to: 6.0
7
+ Stable tag: 4.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
49
  * [herikutu](https://github.com/herikutu)
50
  * [tsucharoku](https://github.com/tsucharoku)
51
  * [Tetsuaki Hamano](https://github.com/t-hamano) ( [t-hamano](https://profiles.wordpress.org/wildworks/) )
52
+ * [Susumu Seino](https://github.com/musus) ( [Susumu Seino](https://profiles.wordpress.org/musus/) )
53
+ * [Yosuke Onoue](https://github.com/likr) ( [likr](https://profiles.wordpress.org/likr/) )
54
+ * [Yudai Konishi](https://github.com/yudai524) ( [Yudai Konishi](https://profiles.wordpress.org/yudai524/) )
55
+ * [takekoshi](https://github.com/noldorinfo) ( [takekoshi](https://profiles.wordpress.org/noldorinfo/) )
56
 
57
  == Installation ==
58
 
77
 
78
  == Changelog ==
79
 
80
+ = 4.4.1 =
81
+ * Fixed a bug that caused forms to be cached when Batcache was enabled.
82
+ * Fix infinite redirections with asterisks.
83
+ * Add audio/x-wav etc. as mimetype for wav.
84
+
85
  = 4.4.0 =
86
  * Add filter hook `mwform_form_start_attr_action`.
87
  * Add maxlength attribute to textarea field arguments.
templates/admin/validation-rule.php CHANGED
@@ -25,7 +25,7 @@
25
  <table border="0" cellpadding="0" cellspacing="0">
26
  <tr>
27
  <td colspan="2">
28
- <?php foreach ( $validation_rules as $validation_rule => $instance ) : ?>
29
  <?php $instance->admin( $key, $value ); ?>
30
  <?php endforeach; ?>
31
  </td>
25
  <table border="0" cellpadding="0" cellspacing="0">
26
  <tr>
27
  <td colspan="2">
28
+ <?php foreach ( $validation_rules as $instance ) : ?>
29
  <?php $instance->admin( $key, $value ); ?>
30
  <?php endforeach; ?>
31
  </td>
templates/chart/index.php CHANGED
@@ -72,7 +72,9 @@
72
  <?php
73
  foreach ( $postdata as $postdata_key => $chart ) {
74
  if ( ! isset( $custom_keys[ $chart['target'] ] ) ) {
 
75
  unset( $postdata[ $postdata_key ] );
 
76
  continue;
77
  }
78
  printf(
72
  <?php
73
  foreach ( $postdata as $postdata_key => $chart ) {
74
  if ( ! isset( $custom_keys[ $chart['target'] ] ) ) {
75
+ // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedUnsetVariable
76
  unset( $postdata[ $postdata_key ] );
77
+ // phpcs:enable
78
  continue;
79
  }
80
  printf(