Merge pull request #5173 from splashingpixels/encoding

removed url decode from custom text attributes related to commit 7bce58e
This commit is contained in:
Mike Jolley 2014-03-19 15:31:33 +00:00
commit 2d5d64dbd7
1 changed files with 2 additions and 2 deletions

View File

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