Version Description
fixed calls to deprecated CF7 functions. Increased minimum WP version to match CF7's specs.
Download this release
Release Info
Developer | webheadllc |
Plugin | Contact Form 7 Multi-Step Forms |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- contact-form-7-multi-step-module.php +3 -3
- form-tags/module-back.php +7 -1
- form-tags/module-hidden.php +7 -2
- form-tags/module-multistep.php +9 -2
- form-tags/module-session.php +10 -2
- readme.txt +8 -3
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.6
|
|
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_' );
|
@@ -48,7 +48,7 @@ require_once(plugin_dir_path(CF7MSM_PLUGIN) . 'form-tags/module-back.php');
|
|
48 |
*/
|
49 |
function contact_form_7_form_codes() {
|
50 |
global $pagenow;
|
51 |
-
if ( $pagenow != 'plugins.php' ||
|
52 |
return;
|
53 |
add_action('admin_notices', 'cfformfieldserror');
|
54 |
wp_enqueue_script('thickbox');
|
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.7
|
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.7' );
|
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_' );
|
48 |
*/
|
49 |
function contact_form_7_form_codes() {
|
50 |
global $pagenow;
|
51 |
+
if ( $pagenow != 'plugins.php' || defined( 'WPCF7_PLUGIN' ) )
|
52 |
return;
|
53 |
add_action('admin_notices', 'cfformfieldserror');
|
54 |
wp_enqueue_script('thickbox');
|
form-tags/module-back.php
CHANGED
@@ -21,7 +21,13 @@
|
|
21 |
* Initialize this wpcf7 shortcode.
|
22 |
*/
|
23 |
function cf7msm_add_shortcode_back() {
|
24 |
-
if (function_exists('
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
wpcf7_add_shortcode(
|
26 |
array( 'back', 'previous' ),
|
27 |
'cf7msm_back_shortcode_handler'
|
21 |
* Initialize this wpcf7 shortcode.
|
22 |
*/
|
23 |
function cf7msm_add_shortcode_back() {
|
24 |
+
if (function_exists('wpcf7_add_form_tag')) {
|
25 |
+
wpcf7_add_form_tag(
|
26 |
+
array( 'back', 'previous' ),
|
27 |
+
'cf7msm_back_shortcode_handler'
|
28 |
+
);
|
29 |
+
}
|
30 |
+
else if (function_exists('wpcf7_add_shortcode')) {
|
31 |
wpcf7_add_shortcode(
|
32 |
array( 'back', 'previous' ),
|
33 |
'cf7msm_back_shortcode_handler'
|
form-tags/module-hidden.php
CHANGED
@@ -36,10 +36,15 @@ add_action('plugins_loaded', 'contact_form_7_hidden_fields', 10);
|
|
36 |
|
37 |
function contact_form_7_hidden_fields() {
|
38 |
global $pagenow;
|
39 |
-
if(function_exists('
|
|
|
|
|
|
|
|
|
40 |
wpcf7_add_shortcode( 'hidden', 'wpcf7_hidden_shortcode_handler', true );
|
41 |
wpcf7_add_shortcode( 'hidden*', 'wpcf7_hidden_shortcode_handler', true );
|
42 |
-
}
|
|
|
43 |
if($pagenow != 'plugins.php') { return; }
|
44 |
//add_action('admin_notices', 'cfhiddenfieldserror');
|
45 |
wp_enqueue_script('thickbox');
|
36 |
|
37 |
function contact_form_7_hidden_fields() {
|
38 |
global $pagenow;
|
39 |
+
if (function_exists( 'wpcf7_add_form_tag' ) ) {
|
40 |
+
wpcf7_add_form_tag( 'hidden', 'wpcf7_hidden_shortcode_handler', true );
|
41 |
+
wpcf7_add_form_tag( 'hidden*', 'wpcf7_hidden_shortcode_handler', true );
|
42 |
+
}
|
43 |
+
else if(function_exists('wpcf7_add_shortcode')) {
|
44 |
wpcf7_add_shortcode( 'hidden', 'wpcf7_hidden_shortcode_handler', true );
|
45 |
wpcf7_add_shortcode( 'hidden*', 'wpcf7_hidden_shortcode_handler', true );
|
46 |
+
}
|
47 |
+
else {
|
48 |
if($pagenow != 'plugins.php') { return; }
|
49 |
//add_action('admin_notices', 'cfhiddenfieldserror');
|
50 |
wp_enqueue_script('thickbox');
|
form-tags/module-multistep.php
CHANGED
@@ -21,13 +21,20 @@
|
|
21 |
* Initialize this wpcf7 shortcode.
|
22 |
*/
|
23 |
function cf7msm_add_shortcode_multistep() {
|
24 |
-
if (function_exists('
|
25 |
-
|
26 |
array( 'multistep', 'multistep*' ),
|
27 |
'cf7msm_multistep_shortcode_handler',
|
28 |
true
|
29 |
);
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
add_action( 'wpcf7_init', 'cf7msm_add_shortcode_multistep' );
|
33 |
|
21 |
* Initialize this wpcf7 shortcode.
|
22 |
*/
|
23 |
function cf7msm_add_shortcode_multistep() {
|
24 |
+
if (function_exists('wpcf7_add_form_tag')) {
|
25 |
+
wpcf7_add_form_tag(
|
26 |
array( 'multistep', 'multistep*' ),
|
27 |
'cf7msm_multistep_shortcode_handler',
|
28 |
true
|
29 |
);
|
30 |
}
|
31 |
+
else if (function_exists('wpcf7_add_shortcode')) {
|
32 |
+
wpcf7_add_shortcode(
|
33 |
+
array( 'multistep', 'multistep*' ),
|
34 |
+
'cf7msm_multistep_shortcode_handler',
|
35 |
+
true
|
36 |
+
);
|
37 |
+
}
|
38 |
}
|
39 |
add_action( 'wpcf7_init', 'cf7msm_add_shortcode_multistep' );
|
40 |
|
form-tags/module-session.php
CHANGED
@@ -21,13 +21,21 @@
|
|
21 |
* Initialize this form shortcode.
|
22 |
*/
|
23 |
function cf7msm_add_shortcode_form_field() {
|
24 |
-
|
25 |
-
|
|
|
26 |
array( 'form', 'form*', 'multiform', 'multiform*' ),
|
27 |
'wpcf7_form_shortcode_handler',
|
28 |
true
|
29 |
);
|
30 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
add_action( 'wpcf7_init', 'cf7msm_add_shortcode_form_field' );
|
33 |
|
21 |
* Initialize this form shortcode.
|
22 |
*/
|
23 |
function cf7msm_add_shortcode_form_field() {
|
24 |
+
|
25 |
+
if ( function_exists( 'wpcf7_add_form_tag' ) ) {
|
26 |
+
wpcf7_add_form_tag(
|
27 |
array( 'form', 'form*', 'multiform', 'multiform*' ),
|
28 |
'wpcf7_form_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 |
+
'wpcf7_form_shortcode_handler',
|
36 |
+
true
|
37 |
+
);
|
38 |
+
}
|
39 |
}
|
40 |
add_action( 'wpcf7_init', 'cf7msm_add_shortcode_form_field' );
|
41 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: webheadllc
|
3 |
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:
|
6 |
-
Tested up to: 4.
|
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,11 @@ The `multistep` form tag is a hidden field and tries not to add any spacing to y
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
|
|
|
|
101 |
= 2.0.6 =
|
102 |
Thanks to @eddraw for the updates!
|
103 |
added translation: add pot file.
|
2 |
Contributors: webheadllc
|
3 |
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
|
7 |
+
Stable tag: 2.0.7
|
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.7 =
|
102 |
+
fixed calls to deprecated CF7 functions.
|
103 |
+
Increased minimum WP version to match CF7's specs.
|
104 |
+
|
105 |
+
|
106 |
= 2.0.6 =
|
107 |
Thanks to @eddraw for the updates!
|
108 |
added translation: add pot file.
|