diff --git a/includes/emails/class-wc-email-customer-refunded-order.php b/includes/emails/class-wc-email-customer-refunded-order.php index dd99fa7ed18..9cff70b7873 100644 --- a/includes/emails/class-wc-email-customer-refunded-order.php +++ b/includes/emails/class-wc-email-customer-refunded-order.php @@ -70,9 +70,9 @@ if ( ! class_exists( 'WC_Email_Customer_Refunded_Order', false ) ) : */ public function get_default_subject( $partial = false ) { if ( $partial ) { - return __( 'Your {site_title} order {order_number} has been partially refunded', 'woocommerce' ); + return __( 'Your {site_title} order #{order_number} has been partially refunded', 'woocommerce' ); } else { - return __( 'Your {site_title} order {order_number} has been refunded', 'woocommerce' ); + return __( 'Your {site_title} order #{order_number} has been refunded', 'woocommerce' ); } } diff --git a/includes/emails/class-wc-email-failed-order.php b/includes/emails/class-wc-email-failed-order.php index 4a85bc5e0fc..78e1eba780e 100644 --- a/includes/emails/class-wc-email-failed-order.php +++ b/includes/emails/class-wc-email-failed-order.php @@ -66,7 +66,7 @@ if ( ! class_exists( 'WC_Email_Failed_Order', false ) ) : * @return string */ public function get_default_heading() { - return __( 'Order Failed: {order_number}', 'woocommerce' ); + return __( 'Order Failed: #{order_number}', 'woocommerce' ); } /** diff --git a/templates/emails/admin-failed-order.php b/templates/emails/admin-failed-order.php index 2aa51b26051..5c96812aa88 100644 --- a/templates/emails/admin-failed-order.php +++ b/templates/emails/admin-failed-order.php @@ -49,7 +49,7 @@ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); ?>

-troubleshooting failed payments.', 'woocommerce' ); ?> +troubleshooting failed payments.', 'woocommerce' ) ); ?>

-

get_billing_first_name() ); ?>

+

get_billing_first_name() ) ); ?>

-

+

- +

get_billing_first_name() ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped +echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n"; /* translators: %s: Site title */ -printf( __( 'Your %s order has been marked complete on our side. We hope you enjoy it!', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped +echo sprintf( esc_html__( 'Your %s order has been marked complete on our side.', 'woocommerce' ), esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) ) . "\n\n"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; @@ -49,12 +49,8 @@ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, */ do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -?> -

- -

-