[wp-trac] [WordPress Trac] #58366: Shortcode Support Regained but Content Filters are messing with Shortcode HTML
WordPress Trac
noreply at wordpress.org
Wed May 14 07:30:09 UTC 2025
#58366: Shortcode Support Regained but Content Filters are messing with Shortcode
HTML
-------------------------------------------------+-------------------------
Reporter: domainsupport | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Shortcodes | Version: 6.2.2
Severity: normal | Resolution:
Keywords: has-test-info needs-unit-tests has- | Focuses:
patch dev-feedback |
-------------------------------------------------+-------------------------
Comment (by kubiq):
Hello @SirLouen ,
I'm testing the patch 58366-poc.2.diff and here is my observation:
[[Image(https://img.kubiq.sk/2025-05-14_09-06-36.png)]]
Let's say there are **2 major facts** that we need to know about each
shortcode:
1. **Where** it is placed ( template, template part, post content )
2. **How** it is placed ( inline in paragraph as part of the text,
Shortcode block, Custom HTML block, ... )
And there are these problems:
1. Using shortcode in **Shortcode Block** in **Template or Template part**
will lead to extra `<p>` wrapper as it is highlighted on my screenshot
2. Using shortcode in **any form** inside the **Reusable block** that is
placed **in Template or Template part** will completely ignore the
shortcode and it will just render raw `[xxx]`
Thank you for your time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58366#comment:95>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list