[wp-trac] [WordPress Trac] #58333: WordPress 6.2.1 Shortcodes some shortcode no longer works!
WordPress Trac
noreply at wordpress.org
Thu May 18 13:40:15 UTC 2023
#58333: WordPress 6.2.1 Shortcodes some shortcode no longer works!
--------------------------+-----------------------
Reporter: jorcus | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.2.2
Component: Shortcodes | Version: 6.2.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Comment (by domainsupport):
Replying to [comment:65 asafm7]:
> Well yes, exactly.
>
> If this was the case, let's just move do_shortcode() to an earlier
position, before blocks are rendered (or even before they are parsed).
>
> This way, user content is never going through do_shortcode().
>
> I mean, I understand the original issue, I just don't understand why is
it still an issue :)
>
> But again, maybe I'm missing something.
I think because even if you add it at an earlier position, you are still
running `do_shortcode()` on the rendered block content for all blocks. So
you're still in the same sticky wicket. The problem is automatically
choosing which blocks have `do_shortcode()` enabled and which don't. The
given example, the Yoast block, which wouldn't have shortcodes working if
you blocked shortcodes by default on all but core blocks. So it's not a
straight forward issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58333#comment:68>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list