Merge pull request #21879 from mcary/fix-this-in-invoice
Fix error when rendering customer invoice email
This commit is contained in:
commit
d3c67b675b
|
@ -34,7 +34,7 @@ if ( $order->has_status( 'pending' ) ) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* translators: %s Order date */
|
/* translators: %s Order date */
|
||||||
echo sprintf( esc_html__( 'Here are the details of your order placed on %s:', 'woocommerce' ), esc_html( wc_format_datetime( $this->object->get_date_created() ) ) ) . "\n\n";
|
echo sprintf( esc_html__( 'Here are the details of your order placed on %s:', 'woocommerce' ), esc_html( wc_format_datetime( $order->get_date_created() ) ) ) . "\n\n";
|
||||||
}
|
}
|
||||||
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
|
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue