Fixed mapping sample display of 0 and false
This commit is contained in:
parent
3fbaa8607a
commit
cd4a9ccf6a
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue