removed url decode from custom text attributes related to commit 7bce58e

This commit is contained in:
splashingpixels 2014-03-18 15:11:43 -07:00 committed by Mike Jolley
parent 7e88c32ae7
commit ac53f7fbac
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ class WC_Order_Item_Meta {
} elseif ( $this->product ) { } elseif ( $this->product ) {
$product_attributes = $this->product->get_attributes(); $product_attributes = $this->product->get_attributes();
if ( isset( $product_attributes[ str_replace( 'attribute_', '', urldecode( $meta_key ) ) ] ) ) { if ( isset( $product_attributes[ str_replace( 'attribute_', '', $meta_key ) ] ) ) {
$meta_key = wc_attribute_label( $product_attributes[ str_replace( 'attribute_', '', urldecode( $meta_key ) ) ]['name'] ); $meta_key = wc_attribute_label( $product_attributes[ str_replace( 'attribute_', '', $meta_key ) ]['name'] );
} }
} }