From 35de0596cf0692fab6c628358dd41d405dd2060d Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sat, 23 Aug 2014 19:07:10 +0200 Subject: [PATCH] Reduce confusion on using the all_meta filter --- includes/api/class-wc-api-orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-api-orders.php b/includes/api/class-wc-api-orders.php index 3d936829ae6..ce688ff4ea2 100644 --- a/includes/api/class-wc-api-orders.php +++ b/includes/api/class-wc-api-orders.php @@ -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(