From 442f357c291c9f53785e491f4c10ae624c72f20c Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 20 Jul 2021 20:58:19 -0300 Subject: [PATCH] Bump templates for 5.6 release --- templates/emails/email-addresses.php | 4 ++-- templates/emails/plain/email-addresses.php | 12 ++++++------ templates/order/order-details-customer.php | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/emails/email-addresses.php b/templates/emails/email-addresses.php index dc15cbb46b0..a82f297080b 100644 --- a/templates/emails/email-addresses.php +++ b/templates/emails/email-addresses.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates\Emails - * @version 3.9.0 + * @version 5.6.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -45,7 +45,7 @@ $shipping = $order->get_formatted_shipping_address();
get_shipping_phone() ) : ?> -
get_shipping_phone() ); ?> +
get_shipping_phone() ); ?>
diff --git a/templates/emails/plain/email-addresses.php b/templates/emails/plain/email-addresses.php index bdf7762e421..c9eef4400a7 100644 --- a/templates/emails/plain/email-addresses.php +++ b/templates/emails/plain/email-addresses.php @@ -12,20 +12,20 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates\Emails\Plain - * @version 3.4.0 + * @version 5.6.0 */ defined( 'ABSPATH' ) || exit; echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Billing address', 'woocommerce' ) ) ) . "\n\n"; -echo preg_replace( '##i', "\n", $order->get_formatted_billing_address() ) . "\n"; // WPCS: XSS ok. +echo preg_replace( '##i', "\n", $order->get_formatted_billing_address() ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped if ( $order->get_billing_phone() ) { - echo $order->get_billing_phone() . "\n"; // WPCS: XSS ok. + echo $order->get_billing_phone() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( $order->get_billing_email() ) { - echo $order->get_billing_email() . "\n"; // WPCS: XSS ok. + echo $order->get_billing_email() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) { @@ -33,10 +33,10 @@ if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) { if ( $shipping ) { echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Shipping address', 'woocommerce' ) ) ) . "\n\n"; - echo preg_replace( '##i', "\n", $shipping ) . "\n"; // WPCS: XSS ok. + echo preg_replace( '##i', "\n", $shipping ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped if ( $order->get_shipping_phone() ) { - echo $order->get_shipping_phone() . "\n"; // WPCS: XSS ok. + echo $order->get_shipping_phone() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } } diff --git a/templates/order/order-details-customer.php b/templates/order/order-details-customer.php index 534c0d4db80..69920200428 100644 --- a/templates/order/order-details-customer.php +++ b/templates/order/order-details-customer.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 3.4.4 + * @version 5.6.0 */ defined( 'ABSPATH' ) || exit;