Merge pull request #16186 from woocommerce/fix/16157

Fix copy pasta errors in refunded email template
This commit is contained in:
Claudio Sanches 2017-07-19 10:52:23 -03:00 committed by GitHub
commit af4c8b4d34
1 changed files with 3 additions and 3 deletions

View File

@ -79,9 +79,9 @@ class WC_Email_Customer_Refunded_Order extends WC_Email {
*/
public function get_default_heading( $partial = false ) {
if ( $partial ) {
return __( 'Order {order_number} details', 'woocommerce' );
} else {
return __( 'Your order has been partially refunded', 'woocommerce' );
} else {
return __( 'Order {order_number} details', 'woocommerce' );
}
}
@ -95,7 +95,7 @@ class WC_Email_Customer_Refunded_Order extends WC_Email {
if ( $this->partial_refund ) {
$subject = $this->get_option( 'subject_partial', $this->get_default_subject( true ) );
} else {
$subject = $this->get_option( 'subject_full', $this->get_default_heading() );
$subject = $this->get_option( 'subject_full', $this->get_default_subject() );
}
return apply_filters( 'woocommerce_email_subject_customer_refunded_order', $this->format_string( $subject ), $this->object );
}