Fix: allow svg in storefront messages, such as notices #2133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: #2129 (comment)
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