Skip to content

Commit

Permalink
Check if there's a payment method title
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Jul 30, 2020
1 parent 008e411 commit 77f8bb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/admin/meta-boxes/views/html-order-items.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,12 @@
<td>
<span class="description">
<?php
if ( $order->get_payment_method_title() ) {
/* translators: 1: payment date. 2: payment method */
echo esc_html( sprintf( __( '%1$s via %2$s', 'woocommerce' ), $order->get_date_paid()->date_i18n( get_option( 'date_format' ) ), $order->get_payment_method_title() ) );
} else {
echo esc_html( $order->get_date_paid()->date_i18n( get_option( 'date_format' ) ) );
}
?>
</span>
</td>
Expand Down

0 comments on commit 77f8bb5

Please sign in to comment.