Bootstrap for Contact Form 7 - Version 1.4.5

Version Description

  • Fixed: plugin compatibility with Contact Form 7 version 4.9 input type radio default required
Download this release

Release Info

Developer flixos90
Plugin Icon 128x128 Bootstrap for Contact Form 7
Version 1.4.5
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.5

bootstrap-for-contact-form-7.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Bootstrap for Contact Form 7
11
  * Plugin URI: https://wordpress.org/plugins/bootstrap-for-contact-form-7/
12
  * Description: This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
13
- * Version: 1.4.4
14
  * Author: Felix Arntz
15
  * Author URI: https://leaves-and-love.net
16
  * License: GNU General Public License v3
@@ -24,7 +24,7 @@ if ( ! defined( 'WPCF7_AUTOP' ) ) {
24
  }
25
 
26
  function cf7bs_maybe_init() {
27
- define( 'CF7BS_VERSION', '1.4.4' );
28
  define( 'CF7BS_MAINFILE', __FILE__ );
29
  define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
30
  define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
10
  * Plugin Name: Bootstrap for Contact Form 7
11
  * Plugin URI: https://wordpress.org/plugins/bootstrap-for-contact-form-7/
12
  * Description: This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
13
+ * Version: 1.4.5
14
  * Author: Felix Arntz
15
  * Author URI: https://leaves-and-love.net
16
  * License: GNU General Public License v3
24
  }
25
 
26
  function cf7bs_maybe_init() {
27
+ define( 'CF7BS_VERSION', '1.4.5' );
28
  define( 'CF7BS_MAINFILE', __FILE__ );
29
  define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
30
  define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 1.4.4 =
4
  * Fixed: critical bug with REALLY SIMPLE CAPTCHA not showing image
5
 
1
  == Changelog ==
2
 
3
+ = 1.4.5 =
4
+ * Fixed: plugin compatibility with Contact Form 7 version 4.9 input type radio default required
5
+
6
  = 1.4.4 =
7
  * Fixed: critical bug with REALLY SIMPLE CAPTCHA not showing image
8
 
classes/CF7BS_Form_Field.php CHANGED
@@ -113,10 +113,12 @@ class CF7BS_Form_Field extends CF7BS_Component {
113
  }
114
 
115
  $label_required = '';
116
- if ( 'required' == $mode ) {
 
117
  $append .= ' aria-required="true" required';
118
  $label_required = ' ' . cf7bs_get_form_property( 'required_html' );
119
- } elseif( 'disabled' == $mode ) {
 
120
  $append .= ' disabled';
121
  }
122
 
113
  }
114
 
115
  $label_required = '';
116
+ $required = 'required' == $mode || version_compare( WPCF7_VERSION, '4.9', '>=' ) && 'radio' == $type;
117
+ if ( $required ) {
118
  $append .= ' aria-required="true" required';
119
  $label_required = ' ' . cf7bs_get_form_property( 'required_html' );
120
+ }
121
+ if ( 'disabled' == $mode ) {
122
  $append .= ' disabled';
123
  }
124
 
readme.txt CHANGED
@@ -8,8 +8,8 @@ Contributors: flixos90
8
  Donate link: https://leaves-and-love.net/wordpress-plugins/
9
  Requires at least: 3.6
10
  Tested up to: 4.8
11
- Stable tag: 1.4.4
12
- Version: 1.4.4
13
  License: GNU General Public License v3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
  Tags: contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs
@@ -111,6 +111,9 @@ You can also contribute to the plugin by translating it. Simply visit [translate
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 1.4.4 =
115
  * Fixed: critical bug with REALLY SIMPLE CAPTCHA not showing image
116
 
8
  Donate link: https://leaves-and-love.net/wordpress-plugins/
9
  Requires at least: 3.6
10
  Tested up to: 4.8
11
+ Stable tag: 1.4.5
12
+ Version: 1.4.5
13
  License: GNU General Public License v3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
  Tags: contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs
111
 
112
  == Changelog ==
113
 
114
+ = 1.4.5 =
115
+ * Fixed: plugin compatibility with Contact Form 7 version 4.9 input type radio default required
116
+
117
  = 1.4.4 =
118
  * Fixed: critical bug with REALLY SIMPLE CAPTCHA not showing image
119