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:
Mike Jolley 2019-02-13 14:40:52 +00:00 committed by GitHub
commit fb5f9c1ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {