Conditional Fields for Contact Form 7 - Version 2.2.10

Version Description

Because the nature of the changes introduced in version 5.7 of Contact Form 7 you might need to make some manual changes to your forms and/or to your wp-config.php file. Please check the changelog. You could also wait for the release of version 5.7.1 of Contact Form 7. We hope the author will have address some of the issues by then.

=

Download this release

Release Info

Developer Jules Colle
Plugin Icon 128x128 Conditional Fields for Contact Form 7
Version 2.2.10
Comparing to
See all releases

Code changes from version 2.2.9 to 2.2.10

Files changed (5) hide show
  1. cf7cf.php +5 -0
  2. contact-form-7-conditional-fields.php +1 -1
  3. init.php +2 -2
  4. readme.txt +9 -2
  5. style.css +1 -1
cf7cf.php CHANGED
@@ -37,6 +37,11 @@ class CF7CF {
37
 
38
  add_action("wpcf7_before_send_mail", [$this, 'hide_hidden_mail_fields'], 10, 3);
39
 
 
 
 
 
 
40
  register_activation_hook(__FILE__, array($this, 'activate'));
41
 
42
  if (is_admin()) {
37
 
38
  add_action("wpcf7_before_send_mail", [$this, 'hide_hidden_mail_fields'], 10, 3);
39
 
40
+ // disable autop because it introduces too many problems with parsing.
41
+ // If you still want to use autop (at your own risk) copy this line to your functions.php file:
42
+ // add_filter( 'wpcf7_autop_or_not', '__return_true', 41, 0);
43
+ add_filter( 'wpcf7_autop_or_not', '__return_false', 40, 0);
44
+
45
  register_activation_hook(__FILE__, array($this, 'activate'));
46
 
47
  if (is_admin()) {
contact-form-7-conditional-fields.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://bdwm.be/
5
  * Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
6
  * Author: Jules Colle
7
- * Version: 2.2.9
8
  * Author URI: http://bdwm.be/
9
  * Text Domain: cf7-conditional-fields
10
  * License: GPL v2 or later
4
  * Plugin URI: http://bdwm.be/
5
  * Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
6
  * Author: Jules Colle
7
+ * Version: 2.2.10
8
  * Author URI: http://bdwm.be/
9
  * Text Domain: cf7-conditional-fields
10
  * License: GPL v2 or later
init.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
- if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '2.2.9' );
4
  if (!defined('WPCF7CF_CF7_MIN_VERSION')) define( 'WPCF7CF_CF7_MIN_VERSION', '5.6' );
5
- if (!defined('WPCF7CF_CF7_MAX_VERSION')) define( 'WPCF7CF_CF7_MAX_VERSION', '5.6.4' );
6
  if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
7
  if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
8
  if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
1
  <?php
2
 
3
+ if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '2.2.10' );
4
  if (!defined('WPCF7CF_CF7_MIN_VERSION')) define( 'WPCF7CF_CF7_MIN_VERSION', '5.6' );
5
+ if (!defined('WPCF7CF_CF7_MAX_VERSION')) define( 'WPCF7CF_CF7_MAX_VERSION', '5.7' );
6
  if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
7
  if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
8
  if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
readme.txt CHANGED
@@ -5,8 +5,8 @@ Author: Jules Colle
5
  Website: http://bdwm.be
6
  Tags: wordpress, contact form 7, forms, conditional fields
7
  Requires at least: 5.0
8
- Tested up to: 6.0.3
9
- Stable tag: 2.2.9
10
  Requires PHP: 7.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -125,9 +125,16 @@ Make sure to also update CF7 to the latest version! (Version 2.0 is only compati
125
 
126
  Make sure to also update CF7 to the latest version! (Version 2.2 is only compatible with CF7 versions 5.6 and up. Version 2.1.6 is only compatible with CF7 version 5.5.*)
127
 
 
 
 
128
 
129
  == Changelog ==
130
 
 
 
 
 
131
  = 2.2.9 (2022-10-19) =
132
  * Fully tested with Contact Form 7 version 5.6.4
133
  * Add action hook: [wpcf7cf_step_completed](https://conditional-fields-cf7.bdwm.be/wpcf7cf_step_completed/)
5
  Website: http://bdwm.be
6
  Tags: wordpress, contact form 7, forms, conditional fields
7
  Requires at least: 5.0
8
+ Tested up to: 6.1.1
9
+ Stable tag: 2.2.10
10
  Requires PHP: 7.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
125
 
126
  Make sure to also update CF7 to the latest version! (Version 2.2 is only compatible with CF7 versions 5.6 and up. Version 2.1.6 is only compatible with CF7 version 5.5.*)
127
 
128
+ = 2.2.10 =
129
+
130
+ Because the nature of the changes introduced in version 5.7 of Contact Form 7 you might need to make some manual changes to your forms and/or to your wp-config.php file. Please check the changelog. You could also wait for the release of version 5.7.1 of Contact Form 7. We hope the author will have address some of the issues by then.
131
 
132
  == Changelog ==
133
 
134
+ = 2.2.10 (2022-12-11) =
135
+ * Fully tested with Contact Form 7 version 5.7 (when WP_DEBUG is false). Note: due to some errors in Contact Form 7 version 5.7 you will need to make sure WP_DEBUG is set to false in your wp-config.php file.
136
+ * disable automatic insertion of paragraphs. Recent CF7 updates have changed the autop mechanism, causing too many problems with parsing the HTML code. If you still want to use autop (at your own risk) copy this code to your functions.php file: `add_filter( 'wpcf7_autop_or_not', '__return_true', 41, 0);`. Untill further notice Conditional Fields and Conditional Fields for Contact Form 7 will not use the automatic paragraph feature of CF7. Always try to write clean and valid HTML code. [GH issue 85](https://github.com/pwkip/contact-form-7-conditional-fields/issues/85)
137
+
138
  = 2.2.9 (2022-10-19) =
139
  * Fully tested with Contact Form 7 version 5.6.4
140
  * Add action hook: [wpcf7cf_step_completed](https://conditional-fields-cf7.bdwm.be/wpcf7cf_step_completed/)
style.css CHANGED
@@ -70,4 +70,4 @@
70
  pointer-events: none;
71
  cursor: default;
72
  opacity: .5;
73
- }
70
  pointer-events: none;
71
  cursor: default;
72
  opacity: .5;
73
+ }