Escape the default "Thank you" text instead of the filtered message (#40353)
* Escape the default "Thank you" text instead of the filtered message Closes: #40329 and #40352 * Update plugins/woocommerce/templates/checkout/order-received.php Co-authored-by: Leif Singer <github.2017@singer.sh> * Bump template version to 8.3.0 * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: Leif Singer <github.2017@singer.sh> Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
0b2ad50a21
commit
b2bbe5e56a
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Escape the default 'thank you' text instead of the filtered message.
|
|
@ -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 8.1.0
|
* @version 8.3.0
|
||||||
*
|
*
|
||||||
* @var WC_Order|false $order
|
* @var WC_Order|false $order
|
||||||
*/
|
*/
|
||||||
|
@ -32,10 +32,11 @@ defined( 'ABSPATH' ) || exit;
|
||||||
*/
|
*/
|
||||||
$message = apply_filters(
|
$message = apply_filters(
|
||||||
'woocommerce_thankyou_order_received_text',
|
'woocommerce_thankyou_order_received_text',
|
||||||
__( 'Thank you. Your order has been received.', 'woocommerce' ),
|
esc_html( __( 'Thank you. Your order has been received.', 'woocommerce' ) ),
|
||||||
$order
|
$order
|
||||||
);
|
);
|
||||||
|
|
||||||
echo esc_html( $message );
|
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||||
|
echo $message;
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue