Contact Form 7 Multi-Step Forms - Version 1.3.4

Version Description

Fix: Better detection of contact-form-7-modules plugin so no conflicts arise if both are activated.

Download this release

Release Info

Developer webheadllc
Plugin Icon 128x128 Contact Form 7 Multi-Step Forms
Version 1.3.4
Comparing to
See all releases

Code changes from version 1.3.3 to 1.3.4

Files changed (2) hide show
  1. contact-form-7-multi-step-module.php +16 -6
  2. readme.txt +4 -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: 1.3.3
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -25,12 +25,22 @@ Version: 1.3.3
25
  */
26
 
27
 
28
- if (!in_array('contact-form-7-modules/hidden.php', get_option( 'active_plugins', array() ))) {
29
- require_once(plugin_dir_path(__FILE__) . 'module-hidden.php');
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
- require_once(plugin_dir_path(__FILE__) . 'module-session.php');
32
- require_once(plugin_dir_path(__FILE__) . 'module-back.php');
33
-
34
  /**
35
  * init_sessions()
36
  *
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.4
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
25
  */
26
 
27
 
28
+ /**
29
+ * Load modules after plugins loaded to check for hidden module.
30
+ */
31
+ function cf7msm_load_modules() {
32
+ if (!in_array('contact-form-7-modules/hidden.php', get_option( 'active_plugins', array() ))) {
33
+ //hack to let contact-form-7-modules be activated.
34
+ //next time require it to be activated instead of copying it in!
35
+ if (!is_admin() || !isset($_GET['action']) || $_GET['action'] != 'activate' ) {
36
+ require_once(plugin_dir_path(__FILE__) . 'module-hidden.php');
37
+ }
38
+ }
39
+ require_once(plugin_dir_path(__FILE__) . 'module-session.php');
40
+ require_once(plugin_dir_path(__FILE__) . 'module-back.php');
41
  }
42
+ add_action('plugins_loaded', 'cf7msm_load_modules', 2);
43
+
 
44
  /**
45
  * init_sessions()
46
  *
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.1
6
- Stable tag: 1.3.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -49,6 +49,9 @@ I have used countless free plugins and have saved countless hours. I could not
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 1.3.3 =
53
  Fixed back button functionality.
54
 
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.1
6
+ Stable tag: 1.3.4
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.4 =
53
+ Fix: Better detection of contact-form-7-modules plugin so no conflicts arise if both are activated.
54
+
55
  = 1.3.3 =
56
  Fixed back button functionality.
57