Remove this from earlier as it breaks foreign chars

This commit is contained in:
Mike Jolley 2014-03-19 15:32:03 +00:00
parent 2d5d64dbd7
commit ed4f283627
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class WC_Checkout {
// Store variation data in meta so admin can view it
if ( $values['variation'] && is_array( $values['variation'] ) ) {
foreach ( $values['variation'] as $key => $value ) {
$key = sanitize_text_field( str_replace( 'attribute_', '', $key ) );
$key = str_replace( 'attribute_', '', $key );
wc_add_order_item_meta( $item_id, $key, $value );
}
}