Remove duplicate sanitizing
This commit is contained in:
parent
5d0d275bec
commit
2fed9b94a3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue