Filter hook 'woocommerce_thankyou_order_received_text' is escaping HTML #40352
Labels
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
team: Proton
type: community contribution
Prerequisites
Describe the bug
After merging #39758, any HTML passed though the
woocommerce_thankyou_order_received_text
filter hook is being escaped:Expected behavior
Before merging #39758, it was possible to pass HTML code through this filter. This is very useful to add links or any other HTML code. This HTML code should be rendered correctly.
Actual behavior
Any HTML passed though the 'woocommerce_thankyou_order_received_text' filter hook is being escaped:
Steps to reproduce
Place a new order and check the code displayed after "Thank you. Your order has been received.", which should look like this:
WordPress Environment
WordPress address (URL): https://woocommerce-testing.local
Site address (URL): https:///woocommerce-testing.local
WC Version: 8.1.1
REST API Version: ✔ 8.1.1
WC Blocks Version: ✔ 10.9.3
Action Scheduler Version: ✔ 3.6.2
Log Directory Writable: ✔
WP Version: 6.3.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: ✔
WP Cron: ✔
Language: en_US
External object cache: –
Isolating the problem
The text was updated successfully, but these errors were encountered: