get_formatted_meta allow 0 values

Fixes #9072
This commit is contained in:
Mike Jolley 2015-09-08 11:39:47 +01:00
parent 14ee9e2daa
commit 6306c3afde
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class WC_Order_Item_Meta {
$formatted_meta = array();
foreach ( $this->item['item_meta_array'] as $meta_id => $meta ) {
if ( empty( $meta->value ) || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) == $hideprefix ) ) {
if ( "" === $meta->value || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) == $hideprefix ) ) {
continue;
}