Merge pull request #14520 from franticpsyx/fix-order-item-offset-get
[3.0.3] Fix Undefined property notice in `WC_Order_Item::offsetGet`
This commit is contained in:
commit
3768730641
|
@ -294,7 +294,7 @@ class WC_Order_Item extends WC_Data implements ArrayAccess {
|
|||
$return = array();
|
||||
|
||||
foreach ( $this->meta_data as $meta ) {
|
||||
$return[ $meta->id ] = $meta;
|
||||
$return[ $meta->key ] = $meta;
|
||||
}
|
||||
|
||||
return $return;
|
||||
|
|
Loading…
Reference in New Issue