Removes the use of strip_tags() when outputting order item meta, to account for basic HTML tags, hyperlinks, etc.
This commit is contained in:
parent
9b7379c66e
commit
e644bccbe8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue