From 8e60cd9554537b669f98c4b61c37b103dae1a87a Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 24 Mar 2014 13:53:40 +0000 Subject: [PATCH] Don't use esc_attr for storage of meta key --- includes/class-wc-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 11dc288651b..ef4feb28f50 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -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 ); } }