wp_kses_post for meta display in admin
This commit is contained in:
parent
23ecb9a2c5
commit
d6f5a6f868
|
@ -68,7 +68,7 @@ class WC_Order_Item_Meta {
|
|||
}
|
||||
|
||||
if ( $flat )
|
||||
$meta_list[] = esc_attr( wc_attribute_label( str_replace( 'attribute_', '', $meta_key ) ) . ': ' . apply_filters( 'woocommerce_order_item_display_meta_value', $meta_value ) );
|
||||
$meta_list[] = wp_kses_post( wc_attribute_label( str_replace( 'attribute_', '', $meta_key ) ) . ': ' . apply_filters( 'woocommerce_order_item_display_meta_value', $meta_value ) );
|
||||
else
|
||||
$meta_list[] = '
|
||||
<dt class="variation-' . sanitize_html_class( sanitize_text_field( $meta_key ) ) . '">' . wp_kses_post( wc_attribute_label( str_replace( 'attribute_', '', $meta_key ) ) ) . ':</dt>
|
||||
|
|
Loading…
Reference in New Issue