Reduce confusion on using the all_meta filter

This commit is contained in:
Florian Ludwig 2014-08-23 19:07:10 +02:00
parent 82f53037be
commit 3fadc14085
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class WC_API_Orders extends WC_API_Resource {
$item_meta = array();
$hideprefix = $filter['all_meta'] == true ? null : '_';
$hideprefix = $filter['all_meta'] == 'true' ? null : '_';
foreach ( $meta->get_formatted( $hideprefix ) as $meta_key => $formatted_meta ) {
$item_meta[] = array(