Skip to content

Commit

Permalink
Merge pull request #2437 from woocommerce/fix/inconsistent_metadata_f…
Browse files Browse the repository at this point in the history
…ormat
  • Loading branch information
jorgemd24 authored Jun 20, 2024
2 parents 58066af + d3260bd commit a4cf0ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Integration/WPCOMProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ public function prepare_response( WP_REST_Response $response, $item, WP_REST_Req
}
}

$data['meta_data'] = array_values( $data['meta_data'] );

$response->set_data( $data );

return $response;
Expand Down

0 comments on commit a4cf0ed

Please sign in to comment.