Skip to content
Permalink
Browse files

Remove duplicate sanitizing

  • Loading branch information...
claudiulodro committed Nov 28, 2018
1 parent d776074 commit ccc20d5fa845648524e21b0e104e0abe3322d34c
Showing with 1 addition and 9 deletions.
  1. +1 −9 templates/order/order-details.php
@@ -71,18 +71,10 @@
<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
}

0 comments on commit ccc20d5

Please sign in to comment.
You can’t perform that action at this time.