Fixed mapping sample display of 0 and false

This commit is contained in:
Claudio Sanches 2017-05-24 03:57:36 -03:00
parent 3fbaa8607a
commit cd4a9ccf6a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php $mapped_value = $mapped_items[ $index ]; ?>
<tr>
<td width="20%"><?php echo esc_html( $name ); ?></td>
<td width="30%"><code><?php echo ! empty( $sample[ $index ] ) ? esc_html( $sample[ $index ] ) : '-'; ?></code></td>
<td width="30%"><code><?php echo '' !== ( $sample[ $index ] ) ? esc_html( $sample[ $index ] ) : '-'; ?></code></td>
<td>
<select name="map_to[<?php echo esc_attr( $name ); ?>]">
<option value=""><?php esc_html_e( 'Do not import', 'woocommerce' ); ?></option>