Add missing escapes
This commit is contained in:
parent
ace411aacd
commit
800cbdbc7e
|
@ -345,7 +345,7 @@ class WC_Meta_Box_Order_Data {
|
||||||
if ( 'billing_phone' === $field_name ) {
|
if ( 'billing_phone' === $field_name ) {
|
||||||
$field_value = wc_make_phone_clickable( $field_value );
|
$field_value = wc_make_phone_clickable( $field_value );
|
||||||
} elseif ( 'billing_email' === $field_name ) {
|
} elseif ( 'billing_email' === $field_name ) {
|
||||||
$field_value = '<a href="mailto:' . $field_value . '">' . $field_value . '</a>';
|
$field_value = '<a href="mailto:' . esc_attr( $field_value ) . '">' . esc_html( $field_value ) . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$field_value = make_clickable( esc_html( $field_value ) );
|
$field_value = make_clickable( esc_html( $field_value ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue