Conditional Fields for Contact Form 7 - Version 2.2.8

Version Description

(2022-10-14) = * Fix acceptance field bug

Download this release

Release Info

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

Code changes from version 2.2.7 to 2.2.8

Files changed (4) hide show
  1. cf7cf.php +1 -1
  2. contact-form-7-conditional-fields.php +1 -1
  3. init.php +1 -1
  4. readme.txt +4 -1
cf7cf.php CHANGED
@@ -29,7 +29,7 @@ class CF7CF {
29
  // If acceptance_as_validation is on, then Acceptance fields inside hidden groups should not trigger an error
30
  add_filter( 'wpcf7_acceptance', function($accepted, $submission) {
31
  $acceptance_as_validation = $submission->get_contact_form()->additional_setting('acceptance_as_validation');
32
- return $accepted || $acceptance_as_validation === 'on';
33
  }, 20, 2 );
34
 
35
  // validation messages
29
  // If acceptance_as_validation is on, then Acceptance fields inside hidden groups should not trigger an error
30
  add_filter( 'wpcf7_acceptance', function($accepted, $submission) {
31
  $acceptance_as_validation = $submission->get_contact_form()->additional_setting('acceptance_as_validation');
32
+ return $accepted || (is_array($acceptance_as_validation) && in_array('on', $acceptance_as_validation));
33
  }, 20, 2 );
34
 
35
  // validation messages
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.7
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.8
8
  * Author URI: http://bdwm.be/
9
  * Text Domain: cf7-conditional-fields
10
  * License: GPL v2 or later
init.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '2.2.7' );
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.3' );
6
  if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
1
  <?php
2
 
3
+ if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '2.2.8' );
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.3' );
6
  if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
readme.txt CHANGED
@@ -6,7 +6,7 @@ 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
9
- Stable tag: 2.2.7
10
  Requires PHP: 7.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -128,6 +128,9 @@ Make sure to also update CF7 to the latest version! (Version 2.2 is only compati
128
 
129
  == Changelog ==
130
 
 
 
 
131
  = 2.2.7 (2022-10-14) =
132
  * Remove unwanted whitespace between closing and opening group tags in mail messages.
133
  * Fix problems with acceptance fields [More info](https://conditional-fields-cf7.bdwm.be/acceptance/)
6
  Tags: wordpress, contact form 7, forms, conditional fields
7
  Requires at least: 5.0
8
  Tested up to: 6.0
9
+ Stable tag: 2.2.8
10
  Requires PHP: 7.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
128
 
129
  == Changelog ==
130
 
131
+ = 2.2.8 (2022-10-14) =
132
+ * Fix acceptance field bug
133
+
134
  = 2.2.7 (2022-10-14) =
135
  * Remove unwanted whitespace between closing and opening group tags in mail messages.
136
  * Fix problems with acceptance fields [More info](https://conditional-fields-cf7.bdwm.be/acceptance/)