Version Description
- Added : Added filter hook mwform_complete_content_mw-wp-form-xxx
- Changed : Changed to pass MW_WP_Form_Data object as the 2nd argument of mwform_post_content_mw-wp-form-xxx hook.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 2.12.0 |
Comparing to | |
See all releases |
Code changes from version 2.11.0 to 2.12.0
- classes/services/class.exec-shortcode.php +3 -3
- mw-wp-form.php +2 -2
- readme.txt +6 -2
classes/services/class.exec-shortcode.php
CHANGED
@@ -324,7 +324,7 @@ class MW_WP_Form_Exec_Shortcode {
|
|
324 |
$form_key = $this->get( 'key' );
|
325 |
$post = get_post( $post_id );
|
326 |
setup_postdata( $post );
|
327 |
-
$content = apply_filters( 'mwform_post_content_raw_' . $form_key, get_the_content() );
|
328 |
|
329 |
$has_wpautop = false;
|
330 |
if ( has_filter( 'the_content', 'wpautop' ) ) {
|
@@ -342,7 +342,7 @@ class MW_WP_Form_Exec_Shortcode {
|
|
342 |
|
343 |
$content = sprintf(
|
344 |
'[mwform]%s[/mwform]',
|
345 |
-
apply_filters( 'mwform_post_content_' . $form_key, $content )
|
346 |
);
|
347 |
wp_reset_postdata();
|
348 |
return $content;
|
@@ -384,7 +384,7 @@ class MW_WP_Form_Exec_Shortcode {
|
|
384 |
|
385 |
$content = sprintf(
|
386 |
'[mwform_complete_message]%s[/mwform_complete_message]',
|
387 |
-
$content
|
388 |
);
|
389 |
return $content;
|
390 |
}
|
324 |
$form_key = $this->get( 'key' );
|
325 |
$post = get_post( $post_id );
|
326 |
setup_postdata( $post );
|
327 |
+
$content = apply_filters( 'mwform_post_content_raw_' . $form_key, get_the_content(), $this->Data );
|
328 |
|
329 |
$has_wpautop = false;
|
330 |
if ( has_filter( 'the_content', 'wpautop' ) ) {
|
342 |
|
343 |
$content = sprintf(
|
344 |
'[mwform]%s[/mwform]',
|
345 |
+
apply_filters( 'mwform_post_content_' . $form_key, $content, $this->Data )
|
346 |
);
|
347 |
wp_reset_postdata();
|
348 |
return $content;
|
384 |
|
385 |
$content = sprintf(
|
386 |
'[mwform_complete_message]%s[/mwform_complete_message]',
|
387 |
+
apply_filters( 'mwform_complete_content_' . $form_key, $content, $this->Data )
|
388 |
);
|
389 |
return $content;
|
390 |
}
|
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: 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: 2.12.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: December 21, 2016
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u,
|
|
3 |
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.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -80,6 +80,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
|
|
83 |
= 2.11.0 =
|
84 |
* Bugfix : Fixed a bug that to remove the uploaded file when filesize validation error.
|
85 |
* Bugfix : Fixed a bug that removing temp files only when uploading is success.
|
3 |
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.7.0
|
7 |
+
Stable tag: 2.12.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 2.12.0 =
|
84 |
+
* Added : Added filter hook mwform_complete_content_mw-wp-form-xxx
|
85 |
+
* Changed : Changed to pass MW_WP_Form_Data object as the 2nd argument of mwform_post_content_mw-wp-form-xxx hook.
|
86 |
+
|
87 |
= 2.11.0 =
|
88 |
* Bugfix : Fixed a bug that to remove the uploaded file when filesize validation error.
|
89 |
* Bugfix : Fixed a bug that removing temp files only when uploading is success.
|