Closed dinhtungdu closed 8 months ago
Fixes #2129
This PR fix the missing icon issue of Woo notices with Storefront theme by adding svg and its child elements to the allowed html list for wp_kses().
svg
wp_kses()
Do nothing, as commented here: https://github.com/woocommerce/storefront/issues/2129#issuecomment-1891565160
[woocommerce_cart]
“{PRODUCT}” has been added to your cart.
Cart updated.
Coupon code applied successfully.
Coupon code already applied!
Coupon "{CODE}" does not exist!
Coupon has been removed.
Your cart is currently empty.
“{PRODUCT}” removed. Undo?
Fix – Allow SVG in Storefront messages. #1319
Fixes #2129
This PR fix the missing icon issue of Woo notices with Storefront theme by adding
svg
and its child elements to the allowed html list forwp_kses()
.Alternative
Do nothing, as commented here: https://github.com/woocommerce/storefront/issues/2129#issuecomment-1891565160
Screenshots
How to test the changes in this Pull Request:
[woocommerce_cart]
“{PRODUCT}” has been added to your cart.
shows an icon. ✅Cart updated.
shows an icon. ✅Coupon code applied successfully.
shows an icon. ✅Coupon code already applied!
shows an icon. ✅Coupon "{CODE}" does not exist!
shows an icon. ✅Coupon has been removed.
shows an icon. ✅Your cart is currently empty.
shows an icon. ✅“{PRODUCT}” removed. Undo?
shows an icon. ✅Changelog