Bump templates for 5.6 release
This commit is contained in:
parent
5e4f3b40e3
commit
442f357c29
|
@ -12,7 +12,7 @@
|
||||||
*
|
*
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @package WooCommerce\Templates\Emails
|
* @package WooCommerce\Templates\Emails
|
||||||
* @version 3.9.0
|
* @version 5.6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
@ -45,7 +45,7 @@ $shipping = $order->get_formatted_shipping_address();
|
||||||
<address class="address">
|
<address class="address">
|
||||||
<?php echo wp_kses_post( $shipping ); ?>
|
<?php echo wp_kses_post( $shipping ); ?>
|
||||||
<?php if ( $order->get_shipping_phone() ) : ?>
|
<?php if ( $order->get_shipping_phone() ) : ?>
|
||||||
<br/><?php echo wc_make_phone_clickable( $order->get_shipping_phone() ); ?>
|
<br /><?php echo wc_make_phone_clickable( $order->get_shipping_phone() ); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</address>
|
</address>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -12,20 +12,20 @@
|
||||||
*
|
*
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @package WooCommerce\Templates\Emails\Plain
|
* @package WooCommerce\Templates\Emails\Plain
|
||||||
* @version 3.4.0
|
* @version 5.6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
|
||||||
echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Billing address', 'woocommerce' ) ) ) . "\n\n";
|
echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Billing address', 'woocommerce' ) ) ) . "\n\n";
|
||||||
echo preg_replace( '#<br\s*/?>#i', "\n", $order->get_formatted_billing_address() ) . "\n"; // WPCS: XSS ok.
|
echo preg_replace( '#<br\s*/?>#i', "\n", $order->get_formatted_billing_address() ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||||
|
|
||||||
if ( $order->get_billing_phone() ) {
|
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() ) {
|
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() ) {
|
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 ) {
|
if ( $shipping ) {
|
||||||
echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Shipping address', 'woocommerce' ) ) ) . "\n\n";
|
echo "\n" . esc_html( wc_strtoupper( esc_html__( 'Shipping address', 'woocommerce' ) ) ) . "\n\n";
|
||||||
echo preg_replace( '#<br\s*/?>#i', "\n", $shipping ) . "\n"; // WPCS: XSS ok.
|
echo preg_replace( '#<br\s*/?>#i', "\n", $shipping ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||||
|
|
||||||
if ( $order->get_shipping_phone() ) {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
*
|
*
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @package WooCommerce\Templates
|
* @package WooCommerce\Templates
|
||||||
* @version 3.4.4
|
* @version 5.6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
|
Loading…
Reference in New Issue