Merge pull request #14895 from franticpsyx/tweak-wc-display-item-meta

[3.0] Tweak meta display value rendering in `wc_display_item_meta`
This commit is contained in:
Claudio Sanches 2017-05-05 17:09:03 -03:00 committed by GitHub
commit 95f2033f88
1 changed files with 1 additions and 1 deletions

View File

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