Contact Form 7 Multi-Step Forms - Version 1.3.1

Version Description

Download this release

Release Info

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

Code changes from version 1.3 to 1.3.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
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
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.1
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
module-back.php CHANGED
@@ -5,13 +5,16 @@
5
 
6
  /* Shortcode handler */
7
 
8
- add_action( 'init', 'cf7msm_add_shortcode_back', 5 );
9
 
10
  function cf7msm_add_shortcode_back() {
11
- wpcf7_add_shortcode( 'back', 'cf7msm_back_shortcode_handler' );
 
12
  }
13
 
14
  function cf7msm_back_shortcode_handler( $tag ) {
 
 
15
  $tag = new WPCF7_Shortcode( $tag );
16
 
17
  $class = wpcf7_form_controls_class( $tag->type );
5
 
6
  /* Shortcode handler */
7
 
8
+ add_action( 'init', 'cf7msm_add_shortcode_back' );
9
 
10
  function cf7msm_add_shortcode_back() {
11
+ if (function_exists('wpcf7_add_shortcode'))
12
+ wpcf7_add_shortcode( 'back', 'cf7msm_back_shortcode_handler' );
13
  }
14
 
15
  function cf7msm_back_shortcode_handler( $tag ) {
16
+ if (!class_exists('WPCF7_Shortcode') || !function_exists('wpcf7_form_controls_class'))
17
+ return;
18
  $tag = new WPCF7_Shortcode( $tag );
19
 
20
  $class = wpcf7_form_controls_class( $tag->type );
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,6 +49,9 @@ I have used countless free plugins and have saved countless hours. I could not
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 1.3 =
53
  Confused with the version numbers. apparently 1.02 is greater than 1.1?
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
6
+ Stable tag: 1.3.1
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 =
53
+ Added checks to prevent errors when contact form 7 is not installed.
54
+
55
  = 1.3 =
56
  Confused with the version numbers. apparently 1.02 is greater than 1.1?
57