[2.2] Fix refund date.

Fixes #6499
This commit is contained in:
Mike Jolley 2014-10-09 16:43:21 +01:00
parent 4d084ed7ae
commit 5c1b931438
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@ $who_refunded = new WP_User( $refund->post->post_author );
<td class="name">
<?php
echo esc_attr__( 'Refund', 'woocommerce' ) . ' - ' . esc_attr( date_i18n( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), strtotime( $refund->post_date ) ) );
if ( $who_refunded->exists() ){
echo esc_attr__( 'Refund', 'woocommerce' ) . ' - ' . esc_attr( date_i18n( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), strtotime( $refund->post->post_date ) ) );
if ( $who_refunded->exists() ) {
echo ' ' . esc_attr_x( 'by', 'Ex: Refund - $date >by< $username', 'woocommerce' ) . ' ' . '<abbr class="refund_by" title="' . esc_attr__( 'ID: ', 'woocommerce' ) . absint( $who_refunded->ID ) . '">' . esc_attr( $who_refunded->display_name ) . '</abbr>' ;
}
?>