my-orders add esc_html

Per new Woo template files;
This commit is contained in:
Unknown 2018-03-22 14:34:29 -06:00 committed by zachary
parent 3484c13ea0
commit ff5dbf64e2
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ if ( $customer_orders ) : ?>
<time datetime="<?php echo esc_attr( $order->get_date_created()->date( 'c' ) ); ?>"><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></time>
<?php elseif ( 'order-status' === $column_id ) : ?>
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
<?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?>
<?php elseif ( 'order-total' === $column_id ) : ?>
<?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'understrap' ), $order->get_formatted_order_total(), $item_count ); ?>