Version Description
fixed issue where using the [multiform]
tag causes the field to blank out and not show in emails on certain servers.
Download this release
Release Info
Developer | webheadllc |
Plugin | Contact Form 7 Multi-Step Forms |
Version | 2.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.0.9
- contact-form-7-multi-step-module.php +3 -3
- form-tags/module-session.php +3 -3
- readme.txt +5 -1
contact-form-7-multi-step-module.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mymonkeydo.com/contact-form-7-multi-step-module/
|
|
5 |
Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
|
6 |
Author: Webhead LLC.
|
7 |
Author URI: http://webheadcoder.com
|
8 |
-
Version: 2.0.
|
9 |
*/
|
10 |
/* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
|
11 |
|
@@ -24,7 +24,7 @@ Version: 2.0.8
|
|
24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
25 |
*/
|
26 |
|
27 |
-
define( 'CF7MSM_VERSION', '2.0.
|
28 |
define( 'CF7MSM_PLUGIN', __FILE__ );
|
29 |
define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
|
30 |
define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
|
@@ -275,7 +275,7 @@ function cf7msm_store_data_steps_filter( $cf7_posted_data ) {
|
|
275 |
//remove empty [form] tags from posted_data so $prev_data can be stored.
|
276 |
$fes = wpcf7_scan_shortcode();
|
277 |
foreach ( $fes as $fe ) {
|
278 |
-
if ( empty( $fe['name'] ) || $fe['type'] != 'form' )
|
279 |
continue;
|
280 |
unset($cf7_posted_data[$fe['name']]);
|
281 |
}
|
5 |
Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
|
6 |
Author: Webhead LLC.
|
7 |
Author URI: http://webheadcoder.com
|
8 |
+
Version: 2.0.9
|
9 |
*/
|
10 |
/* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
|
11 |
|
24 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
25 |
*/
|
26 |
|
27 |
+
define( 'CF7MSM_VERSION', '2.0.9' );
|
28 |
define( 'CF7MSM_PLUGIN', __FILE__ );
|
29 |
define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
|
30 |
define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
|
275 |
//remove empty [form] tags from posted_data so $prev_data can be stored.
|
276 |
$fes = wpcf7_scan_shortcode();
|
277 |
foreach ( $fes as $fe ) {
|
278 |
+
if ( empty( $fe['name'] ) || ( $fe['type'] != 'form' && $fe['type'] != 'multiform' ) )
|
279 |
continue;
|
280 |
unset($cf7_posted_data[$fe['name']]);
|
281 |
}
|
form-tags/module-session.php
CHANGED
@@ -25,14 +25,14 @@ function cf7msm_add_shortcode_form_field() {
|
|
25 |
if ( function_exists( 'wpcf7_add_form_tag' ) ) {
|
26 |
wpcf7_add_form_tag(
|
27 |
array( 'form', 'form*', 'multiform', 'multiform*' ),
|
28 |
-
'
|
29 |
true
|
30 |
);
|
31 |
}
|
32 |
else if ( function_exists( 'wpcf7_add_shortcode' ) ) {
|
33 |
wpcf7_add_shortcode(
|
34 |
array( 'form', 'form*', 'multiform', 'multiform*' ),
|
35 |
-
'
|
36 |
true
|
37 |
);
|
38 |
}
|
@@ -41,7 +41,7 @@ add_action( 'wpcf7_init', 'cf7msm_add_shortcode_form_field' );
|
|
41 |
|
42 |
/* Shortcode handler */
|
43 |
|
44 |
-
function
|
45 |
if ( ! is_array( $tag ) )
|
46 |
return '';
|
47 |
$type = $tag['type'];
|
25 |
if ( function_exists( 'wpcf7_add_form_tag' ) ) {
|
26 |
wpcf7_add_form_tag(
|
27 |
array( 'form', 'form*', 'multiform', 'multiform*' ),
|
28 |
+
'cf7msm_multiform_shortcode_handler',
|
29 |
true
|
30 |
);
|
31 |
}
|
32 |
else if ( function_exists( 'wpcf7_add_shortcode' ) ) {
|
33 |
wpcf7_add_shortcode(
|
34 |
array( 'form', 'form*', 'multiform', 'multiform*' ),
|
35 |
+
'cf7msm_multiform_shortcode_handler',
|
36 |
true
|
37 |
);
|
38 |
}
|
41 |
|
42 |
/* Shortcode handler */
|
43 |
|
44 |
+
function cf7msm_multiform_shortcode_handler( $tag ) {
|
45 |
if ( ! is_array( $tag ) )
|
46 |
return '';
|
47 |
$type = $tag['type'];
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://webheadcoder.com/donate-cf7-multi-step-forms
|
|
4 |
Tags: contact form 7, multistep form, form, multiple pages, store form, contact, multi, step
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -98,6 +98,10 @@ The `multistep` form tag is a hidden field and tries not to add any spacing to y
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
|
|
101 |
= 2.0.8 =
|
102 |
added field_name and value to wpcf7_form_field_value filter.
|
103 |
|
4 |
Tags: contact form 7, multistep form, form, multiple pages, store form, contact, multi, step
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 2.0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 2.0.9 =
|
102 |
+
fixed issue where using the `[multiform]` tag causes the field to blank out and not show in emails on certain servers.
|
103 |
+
|
104 |
+
|
105 |
= 2.0.8 =
|
106 |
added field_name and value to wpcf7_form_field_value filter.
|
107 |
|