From df02507c471446e94e2f01fa27ea3e8769486a06 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 13 Mar 2019 14:35:16 +0000 Subject: [PATCH] Fix double escape --- templates/emails/admin-cancelled-order.php | 2 +- templates/emails/plain/admin-cancelled-order.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/emails/admin-cancelled-order.php b/templates/emails/admin-cancelled-order.php index e8b49b109de..8c9f05f83c2 100644 --- a/templates/emails/admin-cancelled-order.php +++ b/templates/emails/admin-cancelled-order.php @@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) { do_action( 'woocommerce_email_header', $email_heading, $email ); ?> -

get_order_number(), $order->get_formatted_billing_full_name() ) ) ); ?>

+

get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ); ?>

get_order_number(), $order->get_formatted_billing_full_name() ) ) ) . "\n\n"; +echo sprintf( esc_html__( 'Alas. Just to let you know — order #%1$s belonging to %2$s has been cancelled:', 'woocommerce' ), esc_html( $order->get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ) . "\n\n"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";