removed url decode from custom text attributes related to commit 7bce58e
This commit is contained in:
parent
7e88c32ae7
commit
ac53f7fbac
|
@ -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'] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue