| @@ 118-120 (lines=3) @@ | ||
| 115 | ||
| 116 | if ( ! empty( $this->item['item_meta_array'] ) ) { |
|
| 117 | foreach ( $this->item['item_meta_array'] as $meta_id => $meta ) { |
|
| 118 | if ( "" === $meta->value || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) == $hideprefix ) ) { |
|
| 119 | continue; |
|
| 120 | } |
|
| 121 | ||
| 122 | $attribute_key = urldecode( str_replace( 'attribute_', '', $meta->key ) ); |
|
| 123 | ||
| @@ 320-322 (lines=3) @@ | ||
| 317 | $meta_data = $this->get_meta_data(); |
|
| 318 | ||
| 319 | foreach ( $meta_data as $meta_id => $meta ) { |
|
| 320 | if ( "" === $meta->value || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) === $hideprefix ) ) { |
|
| 321 | continue; |
|
| 322 | } |
|
| 323 | ||
| 324 | $attribute_key = urldecode( str_replace( 'attribute_', '', $meta->key ) ); |
|
| 325 | $display_key = wc_attribute_label( $attribute_key, is_callable( array( $this, 'get_product' ) ) ? $this->get_product() : false ); |
|