Remove duplicate sanitizing

This commit is contained in:
claudiulodro 2018-11-28 09:37:27 -08:00
parent 5d0d275bec
commit 2fed9b94a3
1 changed files with 1 additions and 9 deletions

View File

@ -71,18 +71,10 @@ if ( $show_downloads ) {
<tfoot>
<?php
foreach ( $order->get_order_item_totals() as $key => $total ) {
switch ( $key ) {
case 'payment_method':
$value = esc_html( $total['value'] );
break;
default:
$value = $total['value'];
break;
}
?>
<tr>
<th scope="row"><?php echo $total['label']; ?></th>
<td><?php echo ( 'payment_method' === $key ) ? esc_html( $value ) : $value; ?></td>
<td><?php echo ( 'payment_method' === $key ) ? esc_html( $total['value'] ) : $total['value']; ?></td>
</tr>
<?php
}