Merge pull request #5173 from splashingpixels/encoding
removed url decode from custom text attributes related to commit 7bce58e
This commit is contained in:
commit
2d5d64dbd7
|
@ -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'] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue