Version Description
- Fixed: Updated required field to match WooCommerce 3.5+ (thanks @sirachote)
Download this release
Release Info
Developer | visser |
Plugin | 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 +14 -14
- readme.txt +5 -2
- woocommerce-checkout-manager.php +1 -1
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 |
-
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
887 |
} else {
|
888 |
$required = '';
|
889 |
}
|
33 |
$required = false;
|
34 |
if( $args['wooccm_required'] ) {
|
35 |
$args['class'][] = 'validate-required';
|
36 |
+
$required = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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 = ' <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.
|
8 |
-
Stable tag: 4.2.
|
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.
|
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
|