[product_page id="_"] shortcode is not recognizing breaks in product description #26191
Closed
3 tasks done
Labels
focus: product
Issues related to product or product page.
plugin: woocommerce
Issues related to the WooCommerce Core plugin.
priority: normal
The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc.
team: Kirigami & Origami
WC Store Editing (FSE)
type: bug
The issue is a confirmed bug.
Describe the bug
When using the
[product_page id="_"]
shortcode with a product that has a description, the description is not recognizing line breaks between multiple</p>
elements. Additionally, it's also removing the<p>
elements and just placing the description text directly inside of the<div>
.To Reproduce
Steps to reproduce the behavior:
[product_page id="_"]
: https://d.pr/i/iewqePScreenshots
Product description settings: https://d.pr/i/Iv1g0Z
Shortcode page settings: https://d.pr/i/iewqeP
Normal product page: https://d.pr/i/KcCqXJ
Shortcode product page: https://d.pr/i/9W8NHj
Expected behavior
The description should carry over both line breaks and any elements being used in the original description.
Isolating the problem (mark completed items with an [x]):
WordPress Environment
The text was updated successfully, but these errors were encountered: