WooCommerce Checkout Manager - Version 4.2.5

Version Description

  • Fixed: Updated required field to match WooCommerce 3.5+ (thanks @sirachote)
Download this release

Release Info

Developer visser
Plugin Icon 128x128 WooCommerce Checkout Manager
Version 4.2.5
Comparing to
See all releases

Code changes from version 4.2.4 to 4.2.5

includes/classes/field_filters.php CHANGED
@@ -33,7 +33,7 @@ function wooccm_checkout_field_text_handler( $field = '', $key, $args, $value )
33
  $required = false;
34
  if( $args['wooccm_required'] ) {
35
  $args['class'][] = 'validate-required';
36
- $required = ' <span class="required">*</span>';
37
  }
38
 
39
  $args['maxlength'] = ( $args['maxlength'] ) ? 'maxlength="' . absint( $args['maxlength'] ) . '"' : '';
@@ -106,7 +106,7 @@ function wooccm_checkout_field_textarea_handler( $field = '', $key, $args, $valu
106
 
107
  if( $args['wooccm_required'] ) {
108
  $args['class'][] = 'validate-required';
109
- $required = ' <span class="required">*</span>';
110
  } else {
111
  $required = '';
112
  }
@@ -185,7 +185,7 @@ function wooccm_checkout_field_password_handler( $field = '', $key, $args, $valu
185
 
186
  if( $args['wooccm_required'] ) {
187
  $args['class'][] = 'validate-required';
188
- $required = ' <span class="required">*</span>';
189
  } else {
190
  $required = '';
191
  }
@@ -260,7 +260,7 @@ function wooccm_checkout_field_radio_handler( $field = '', $key, $args, $value )
260
 
261
  if( $args['wooccm_required'] ) {
262
  $args['class'][] = 'validate-required';
263
- $required = ' <span class="required">*</span>';
264
  } else {
265
  $required = '';
266
  }
@@ -310,7 +310,7 @@ function wooccm_checkout_field_select_handler( $field = '', $key, $args, $value
310
 
311
  if( $args['wooccm_required'] ) {
312
  $args['class'][] = 'validate-required';
313
- $required = ' <span class="required">*</span>';
314
  } else {
315
  $required = '';
316
  }
@@ -369,7 +369,7 @@ function wooccm_checkout_field_checkbox_handler( $field = '', $key, $args, $valu
369
 
370
  if( $args['wooccm_required'] ) {
371
  $args['class'][] = 'validate-required';
372
- $required = ' <span class="required">*</span>';
373
  } else {
374
  $required = '';
375
  }
@@ -421,7 +421,7 @@ function wooccm_checkout_field_state_handler( $field = '', $key, $args, $value )
421
  if( !empty( $states ) ) {
422
  if( !in_array( 'validate-required', $args['class'] ) )
423
  $args['class'][] = 'validate-required';
424
- $required = ' <span class="required">*</span>';
425
  } else {
426
  $args['class'][] = 'woocommerce-validated';
427
  }
@@ -540,7 +540,7 @@ function wooccm_checkout_field_country_handler( $field = '', $key, $args, $value
540
 
541
  if( $args['wooccm_required'] ) {
542
  $args['class'][] = 'validate-required';
543
- $required = ' <span class="required">*</span>';
544
  } else {
545
  $required = '';
546
  }
@@ -644,7 +644,7 @@ function wooccm_checkout_field_multiselect_handler( $field = '', $key, $args, $v
644
 
645
  if( $args['wooccm_required'] ) {
646
  $args['class'][] = 'validate-required';
647
- $required = ' <span class="required">*</span>';
648
  } else {
649
  $required = '';
650
  }
@@ -698,7 +698,7 @@ function wooccm_checkout_field_multicheckbox_handler( $field = '', $key, $args,
698
 
699
  if( $args['wooccm_required'] ) {
700
  $args['class'][] = 'validate-required';
701
- $required = ' <span class="required">*</span>';
702
  } else {
703
  $required = '';
704
  }
@@ -752,7 +752,7 @@ function wooccm_checkout_field_colorpicker_handler( $field = '', $key, $args, $v
752
 
753
  if( $args['wooccm_required'] ) {
754
  $args['class'][] = 'validate-required';
755
- $required = ' <span class="required">*</span>';
756
  } else {
757
  $required = '';
758
  }
@@ -799,7 +799,7 @@ function wooccm_checkout_field_datepicker_handler( $field = '', $key, $args, $va
799
 
800
  if( $args['wooccm_required'] ) {
801
  $args['class'][] = 'validate-required';
802
- $required = ' <span class="required">*</span>';
803
  } else {
804
  $required = '';
805
  }
@@ -840,7 +840,7 @@ function wooccm_checkout_field_timepicker_handler( $field = '', $key, $args, $va
840
 
841
  if( $args['wooccm_required'] ) {
842
  $args['class'][] = 'validate-required';
843
- $required = ' <span class="required">*</span>';
844
  } else {
845
  $required = '';
846
  }
@@ -883,7 +883,7 @@ function wooccm_checkout_field_upload_handler( $field = '', $key, $args, $value
883
 
884
  if( $args['wooccm_required'] ) {
885
  $args['class'][] = 'validate-required';
886
- $required = ' <span class="required">*</span>';
887
  } else {
888
  $required = '';
889
  }
33
  $required = false;
34
  if( $args['wooccm_required'] ) {
35
  $args['class'][] = 'validate-required';
36
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
37
  }
38
 
39
  $args['maxlength'] = ( $args['maxlength'] ) ? 'maxlength="' . absint( $args['maxlength'] ) . '"' : '';
106
 
107
  if( $args['wooccm_required'] ) {
108
  $args['class'][] = 'validate-required';
109
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
110
  } else {
111
  $required = '';
112
  }
185
 
186
  if( $args['wooccm_required'] ) {
187
  $args['class'][] = 'validate-required';
188
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
189
  } else {
190
  $required = '';
191
  }
260
 
261
  if( $args['wooccm_required'] ) {
262
  $args['class'][] = 'validate-required';
263
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
264
  } else {
265
  $required = '';
266
  }
310
 
311
  if( $args['wooccm_required'] ) {
312
  $args['class'][] = 'validate-required';
313
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
314
  } else {
315
  $required = '';
316
  }
369
 
370
  if( $args['wooccm_required'] ) {
371
  $args['class'][] = 'validate-required';
372
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
373
  } else {
374
  $required = '';
375
  }
421
  if( !empty( $states ) ) {
422
  if( !in_array( 'validate-required', $args['class'] ) )
423
  $args['class'][] = 'validate-required';
424
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
425
  } else {
426
  $args['class'][] = 'woocommerce-validated';
427
  }
540
 
541
  if( $args['wooccm_required'] ) {
542
  $args['class'][] = 'validate-required';
543
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
544
  } else {
545
  $required = '';
546
  }
644
 
645
  if( $args['wooccm_required'] ) {
646
  $args['class'][] = 'validate-required';
647
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
648
  } else {
649
  $required = '';
650
  }
698
 
699
  if( $args['wooccm_required'] ) {
700
  $args['class'][] = 'validate-required';
701
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
702
  } else {
703
  $required = '';
704
  }
752
 
753
  if( $args['wooccm_required'] ) {
754
  $args['class'][] = 'validate-required';
755
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
756
  } else {
757
  $required = '';
758
  }
799
 
800
  if( $args['wooccm_required'] ) {
801
  $args['class'][] = 'validate-required';
802
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
803
  } else {
804
  $required = '';
805
  }
840
 
841
  if( $args['wooccm_required'] ) {
842
  $args['class'][] = 'validate-required';
843
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
844
  } else {
845
  $required = '';
846
  }
883
 
884
  if( $args['wooccm_required'] ) {
885
  $args['class'][] = 'validate-required';
886
+ $required = '&nbsp;<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
887
  } else {
888
  $required = '';
889
  }
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: visser, visser.labs, Emark
4
  Donate link: https://www.visser.com.au/donations/
5
  Tags: woocommerce, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
6
  Requires at least: 3.0
7
- Tested up to: 5.0.2
8
- Stable tag: 4.2.4
9
  License: GPLv2 or later
10
 
11
  Manages WooCommerce Checkout, the advanced way.
@@ -135,6 +135,9 @@ Example:
135
 
136
  == Changelog ==
137
 
 
 
 
138
  = 4.2.4 =
139
  * Fixed: Checkout field sorting issue in WC 3.5.1 onwards (thanks all)
140
 
4
  Donate link: https://www.visser.com.au/donations/
5
  Tags: woocommerce, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
6
  Requires at least: 3.0
7
+ Tested up to: 5.0.3
8
+ Stable tag: 4.2.5
9
  License: GPLv2 or later
10
 
11
  Manages WooCommerce Checkout, the advanced way.
135
 
136
  == Changelog ==
137
 
138
+ = 4.2.5 =
139
+ * Fixed: Updated required field to match WooCommerce 3.5+ (thanks @sirachote)
140
+
141
  = 4.2.4 =
142
  * Fixed: Checkout field sorting issue in WC 3.5.1 onwards (thanks all)
143
 
woocommerce-checkout-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Checkout Manager
4
  Plugin URI: https://wordpress.org/plugins/woocommerce-checkout-manager/
5
  Description: Manages WooCommerce Checkout, the advanced way.
6
- Version: 4.2.4
7
  Author: Visser Labs
8
  Author URI: http://www.visser.com.au
9
  Contributors: visser, Emark
3
  Plugin Name: WooCommerce Checkout Manager
4
  Plugin URI: https://wordpress.org/plugins/woocommerce-checkout-manager/
5
  Description: Manages WooCommerce Checkout, the advanced way.
6
+ Version: 4.2.5
7
  Author: Visser Labs
8
  Author URI: http://www.visser.com.au
9
  Contributors: visser, Emark