Nicola Mustone 2014-11-18 14:22:21 +01:00
parent 22a32ae9c8
commit 913cc42c06
2 changed files with 2 additions and 2 deletions

View File

@ -1075,7 +1075,7 @@ abstract class WC_Abstract_Order {
if ( '_' === substr( $name, 0, 1 ) ) {
$items[ $item->order_item_id ][ substr( $name, 1 ) ] = $value[0];
} elseif ( ! in_array( $name, $reserved_item_meta_keys ) ) {
$items[ $item->order_item_id ][ $name ] = $value[0];
$items[ $item->order_item_id ][ $name ] = make_clickable( $value[0] );
}
}
}

View File

@ -54,7 +54,7 @@ class WC_Order_Item_Meta {
} else {
$meta_list[] = '
<dt class="variation-' . sanitize_html_class( sanitize_text_field( $meta_key ) ) . '">' . wp_kses_post( $meta['label'] ) . ':</dt>
<dd class="variation-' . sanitize_html_class( sanitize_text_field( $meta_key ) ) . '">' . wp_kses_post( wpautop( $meta['value'] ) ) . '</dd>
<dd class="variation-' . sanitize_html_class( sanitize_text_field( $meta_key ) ) . '">' . wp_kses_post( wpautop( make_clickable( $meta['value'] ) ) ) . '</dd>
';
}
}