wp_kses_post for meta display in admin

This commit is contained in:
Mike Jolley 2014-03-26 09:41:38 +00:00
parent 23ecb9a2c5
commit d6f5a6f868
1 changed files with 1 additions and 1 deletions

View File

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