Removes the use of strip_tags() when outputting order item meta, to account for basic HTML tags, hyperlinks, etc.

This commit is contained in:
Matt Cohen 2017-06-09 11:00:23 +02:00
parent 9b7379c66e
commit e644bccbe8
No known key found for this signature in database
GPG Key ID: 5BA5411B36FB1F9A
1 changed files with 1 additions and 1 deletions

View File

@ -2456,7 +2456,7 @@ if ( ! function_exists( 'wc_display_item_meta' ) ) {
) );
foreach ( $item->get_formatted_meta_data() as $meta_id => $meta ) {
$value = $args['autop'] ? wp_kses_post( $meta->display_value ) : wp_kses_post( make_clickable( trim( strip_tags( $meta->display_value ) ) ) );
$value = $args['autop'] ? wp_kses_post( $meta->display_value ) : wp_kses_post( make_clickable( trim( $meta->display_value ) ) );
$strings[] = '<strong class="wc-item-meta-label">' . wp_kses_post( $meta->display_key ) . ':</strong> ' . $value;
}