Merge pull request #9003 from krautnerds/fix-api-v2-item-meta-keys
Restored wc<2.4 behavior of order item meta keys
This commit is contained in:
commit
ee0b0ba088
|
@ -232,7 +232,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
|
||||
foreach ( $meta->get_formatted( $hideprefix ) as $meta_key => $formatted_meta ) {
|
||||
$item_meta[] = array(
|
||||
'key' => $meta_key,
|
||||
'key' => $formatted_meta['key'],
|
||||
'label' => $formatted_meta['label'],
|
||||
'value' => $formatted_meta['value'],
|
||||
);
|
||||
|
|
|
@ -232,7 +232,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
|
||||
foreach ( $meta->get_formatted( $hideprefix ) as $meta_key => $formatted_meta ) {
|
||||
$item_meta[] = array(
|
||||
'key' => $meta_key,
|
||||
'key' => $formatted_meta['key'],
|
||||
'label' => $formatted_meta['label'],
|
||||
'value' => $formatted_meta['value'],
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue