Version Description
Some people are having trouble with cookies. added 'cf7msm_force_session' filter to force to use session.
Download this release
Release Info
Developer | webheadllc |
Plugin | Contact Form 7 Multi-Step Forms |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- contact-form-7-multi-step-module.php +6 -2
- readme.txt +5 -2
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: 1.3.
|
9 |
*/
|
10 |
/* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
|
11 |
|
@@ -40,7 +40,10 @@ require_once(plugin_dir_path(__FILE__) . 'module-back.php');
|
|
40 |
function cf7msm_init_sessions() {
|
41 |
//try to set cookie
|
42 |
if ( empty( $_COOKIE['cf7msm_check'] ) ) {
|
43 |
-
|
|
|
|
|
|
|
44 |
|
45 |
if (!session_id()) {
|
46 |
session_start();
|
@@ -48,6 +51,7 @@ function cf7msm_init_sessions() {
|
|
48 |
}
|
49 |
}
|
50 |
add_action('init', 'cf7msm_init_sessions');
|
|
|
51 |
|
52 |
/**
|
53 |
* Add scripts to be able to go back to a previous step.
|
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: 1.3.2
|
9 |
*/
|
10 |
/* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
|
11 |
|
40 |
function cf7msm_init_sessions() {
|
41 |
//try to set cookie
|
42 |
if ( empty( $_COOKIE['cf7msm_check'] ) ) {
|
43 |
+
$force_session = apply_filters('cf7msm_force_session', false);
|
44 |
+
if ( !$force_session ) {
|
45 |
+
setcookie('cf7msm_check', 1, 0, COOKIEPATH, COOKIE_DOMAIN);
|
46 |
+
}
|
47 |
|
48 |
if (!session_id()) {
|
49 |
session_start();
|
51 |
}
|
52 |
}
|
53 |
add_action('init', 'cf7msm_init_sessions');
|
54 |
+
|
55 |
|
56 |
/**
|
57 |
* Add scripts to be able to go back to a previous step.
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webheadllc
|
|
3 |
Tags: contact form 7, multistep form, form, multiple pages, store form
|
4 |
Requires at least: 3.4.1
|
5 |
Tested up to: 3.6
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -49,7 +49,10 @@ I have used countless free plugins and have saved countless hours. I could not
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
-
= 1.3 =
|
|
|
|
|
|
|
53 |
Added checks to prevent errors when contact form 7 is not installed.
|
54 |
|
55 |
= 1.3 =
|
3 |
Tags: contact form 7, multistep form, form, multiple pages, store form
|
4 |
Requires at least: 3.4.1
|
5 |
Tested up to: 3.6
|
6 |
+
Stable tag: 1.3.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.3.2 =
|
53 |
+
Some people are having trouble with cookies. added 'cf7msm_force_session' filter to force to use session.
|
54 |
+
|
55 |
+
= 1.3.1 =
|
56 |
Added checks to prevent errors when contact form 7 is not installed.
|
57 |
|
58 |
= 1.3 =
|