Conditional Fields for Contact Form 7 - Version 1.9.9

Version Description

(2020-07-29) = * Fix bug when saving conditions from Text View * Tested with WP 5.5

Download this release

Release Info

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

Code changes from version 1.9.8 to 1.9.9

contact-form-7-conditional-fields.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form 7 Conditional Fields
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: 1.9.8
8
  Author URI: http://bdwm.be/
9
  */
10
 
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: 1.9.9
8
  Author URI: http://bdwm.be/
9
  */
10
 
init.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '1.9.8' );
4
  if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
5
  if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
6
  if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
1
  <?php
2
 
3
+ if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '1.9.9' );
4
  if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
5
  if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
6
  if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
js/scripts_admin.js CHANGED
@@ -374,8 +374,7 @@ wpcf7cf.$textOnlyCheckbox.on('change', function() {
374
  setUiMode(wpcf7cf.$textOnlyCheckbox.is(':checked'));
375
 
376
  wpcf7cf.$formEditorForm.on('submit', function() {
377
- wpcf7cf.currentMode = 'normal';
378
- if (wpcf7cf.getnumberOfFieldEntries() > 0) {
379
  wpcf7cf.copyFieldsToText();
380
  }
381
  });
374
  setUiMode(wpcf7cf.$textOnlyCheckbox.is(':checked'));
375
 
376
  wpcf7cf.$formEditorForm.on('submit', function() {
377
+ if (wpcf7cf.currentMode == 'normal' && wpcf7cf.getnumberOfFieldEntries() > 0) {
 
378
  wpcf7cf.copyFieldsToText();
379
  }
380
  });
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: 4.1
8
- Tested up to: 5.4.2
9
- Stable tag: 1.9.8
10
  Requires PHP: 5.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -117,6 +117,10 @@ The conditional fields javascript code is loaded during wp_footer, so a call to
117
 
118
  == Changelog ==
119
 
 
 
 
 
120
  = 1.9.8 (2020-07-20) =
121
  * Make sure all posted data is analyzed after submitting (part of) a form. A recent update of CF7 stripped away some information, resulting in PHP Notices.
122
 
@@ -453,3 +457,4 @@ Fixed bug with exclusive checkboxes (https://wordpress.org/support/topic/groups-
453
  First release
454
 
455
 
 
5
  Website: http://bdwm.be
6
  Tags: wordpress, contact form 7, forms, conditional fields
7
  Requires at least: 4.1
8
+ Tested up to: 5.5
9
+ Stable tag: 1.9.9
10
  Requires PHP: 5.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
117
 
118
  == Changelog ==
119
 
120
+ = 1.9.9 (2020-07-29) =
121
+ * Fix bug when saving conditions from Text View
122
+ * Tested with WP 5.5
123
+
124
  = 1.9.8 (2020-07-20) =
125
  * Make sure all posted data is analyzed after submitting (part of) a form. A recent update of CF7 stripped away some information, resulting in PHP Notices.
126
 
457
  First release
458
 
459
 
460
+