Merge pull request #22690 from Tofandel/patch-1
The "for" attribute of a label for a radio input is invalid
This commit is contained in:
commit
fb5f9c1ecb
|
@ -2731,7 +2731,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
|
|||
|
||||
break;
|
||||
case 'radio':
|
||||
$label_id = current( array_keys( $args['options'] ) );
|
||||
$label_id .= '_' . current( array_keys( $args['options'] ) );
|
||||
|
||||
if ( ! empty( $args['options'] ) ) {
|
||||
foreach ( $args['options'] as $option_key => $option_text ) {
|
||||
|
|
Loading…
Reference in New Issue