Don't use esc_attr for storage of meta key

This commit is contained in:
Mike Jolley 2014-03-24 13:53:40 +00:00
parent d9a58c53ea
commit 8e60cd9554
1 changed files with 1 additions and 1 deletions

View File

@ -911,7 +911,7 @@ class WC_AJAX {
// Store variation data in meta
if ( $item['variation_data'] && is_array( $item['variation_data'] ) ) {
foreach ( $item['variation_data'] as $key => $value ) {
wc_add_order_item_meta( $item_id, esc_attr( str_replace( 'attribute_', '', $key ) ), $value );
wc_add_order_item_meta( $item_id, str_replace( 'attribute_', '', $key ), $value );
}
}