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:
Claudiu Lodromanean 2017-04-19 10:16:42 -07:00 committed by GitHub
commit 3768730641
1 changed files with 1 additions and 1 deletions

View File

@ -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;