Merge pull request #27800 from gbiorczyk/fix/field-label-escaping
Escaping output for field label
This commit is contained in:
commit
631c06020c
|
@ -2874,7 +2874,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
|
|||
$field_html = '';
|
||||
|
||||
if ( $args['label'] && 'checkbox' !== $args['type'] ) {
|
||||
$field_html .= '<label for="' . esc_attr( $label_id ) . '" class="' . esc_attr( implode( ' ', $args['label_class'] ) ) . '">' . $args['label'] . $required . '</label>';
|
||||
$field_html .= '<label for="' . esc_attr( $label_id ) . '" class="' . esc_attr( implode( ' ', $args['label_class'] ) ) . '">' . wp_kses_post( $args['label'] ) . $required . '</label>';
|
||||
}
|
||||
|
||||
$field_html .= '<span class="woocommerce-input-wrapper">' . $field;
|
||||
|
|
Loading…
Reference in New Issue