Version Description
- Added : Added filter hook mwform_response_statuses_mwf_xxx
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 3.2.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.2 to 3.2.3
classes/controllers/class.contact-data-list.php
CHANGED
@@ -154,7 +154,7 @@ class MW_WP_Form_Contact_Data_List_Controller extends MW_WP_Form_Controller {
|
|
154 |
} elseif ( $column === 'response_status' ) {
|
155 |
$response_statuses = $Contact_Data_Setting->get_response_statuses();
|
156 |
$response_status = $Contact_Data_Setting->get( 'response_status' );
|
157 |
-
$value = $response_statuses[$response_status];
|
158 |
} elseif ( is_array( $post_custom_keys ) && in_array( $column, $post_custom_keys ) ) {
|
159 |
$post_meta = get_post_meta( $post_id, $column, true );
|
160 |
if ( $Contact_Data_Setting->is_upload_file_key( $post, $column ) ) {
|
154 |
} elseif ( $column === 'response_status' ) {
|
155 |
$response_statuses = $Contact_Data_Setting->get_response_statuses();
|
156 |
$response_status = $Contact_Data_Setting->get( 'response_status' );
|
157 |
+
$value = isset( $response_statuses[ $response_status ] ) ? $response_statuses[ $response_status ] : $response_statuses[ key( $response_statuses ) ];
|
158 |
} elseif ( is_array( $post_custom_keys ) && in_array( $column, $post_custom_keys ) ) {
|
159 |
$post_meta = get_post_meta( $post_id, $column, true );
|
160 |
if ( $Contact_Data_Setting->is_upload_file_key( $post, $column ) ) {
|
classes/models/class.contact-data-setting.php
CHANGED
@@ -89,7 +89,8 @@ class MW_WP_Form_Contact_Data_Setting {
|
|
89 |
* @return array
|
90 |
*/
|
91 |
public function get_response_statuses() {
|
92 |
-
|
|
|
93 |
}
|
94 |
|
95 |
/**
|
89 |
* @return array
|
90 |
*/
|
91 |
public function get_response_statuses() {
|
92 |
+
$contact_data_post_type = get_post_type( $this->post_id );
|
93 |
+
return apply_filters( 'mwform_response_statuses_' . $contact_data_post_type, $this->response_statuses );
|
94 |
}
|
95 |
|
96 |
/**
|
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: 3.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
-
* Modified:
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2 or later
|
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: 3.2.3
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: August 9, 2018
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2 or later
|
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: 4.0
|
6 |
Tested up to: 4.9.7
|
7 |
-
Stable tag: 3.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -80,6 +80,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
83 |
= 3.2.2 =
|
84 |
* Bugfix : Support validation check of custom mail tag fields.
|
85 |
|
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: 4.9.7
|
7 |
+
Stable tag: 3.2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 3.2.3 =
|
84 |
+
* Added : Added filter hook mwform_response_statuses_mwf_xxx
|
85 |
+
|
86 |
= 3.2.2 =
|
87 |
* Bugfix : Support validation check of custom mail tag fields.
|
88 |
|