[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:30:21 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 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().

 Replying to [comment:64 domainsupport]:
 > Replying to [comment:63 asafm7]:
 > > Even with comments blocks, the comments themselves aren't a part of
 the template structure, they are saved elsewhere in the database and are
 only retrieved later.
 > >
 > > Am I missing something?
 > >
 > > Can't we just do_shortcode() on the block template structure, before
 blocks are rendered?
 >
 > I ''think'' that the problem was / is that the `do_shortcode` filter is
 run on the **entire** HTML **after** blocks have been rendered. This means
 that anything that has a shortcode in the template content has the
 shortcode rendered whether it's user content or a shortcode block or
 whatever! Eeek!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58333#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list