[wp-trac] [WordPress Trac] #58366: Shortcode Support Regained but Content Filters are messing with Shortcode HTML

WordPress Trac noreply at wordpress.org
Tue May 23 14:33:35 UTC 2023


#58366: Shortcode Support Regained but Content Filters are messing with Shortcode
HTML
-------------------------------------------------+-------------------------
 Reporter:  domainsupport                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Shortcodes                           |     Version:  6.2.2
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-testing-info       |     Focuses:
  needs-unit-tests                               |
-------------------------------------------------+-------------------------

Comment (by bekk):

 My patch draws on the observation that the shortcode block should not be
 autop'ing its own content. It is noted in `the_content` filters that
 shortcodes should be processed ''after'' `wpautop()`, I don't see why the
 shortcode block is any different.

 I also added shortcode processing to the core block, which restores
 shortcodes in template parts and reusable blocks.

 My patch is attached above for review

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


More information about the wp-trac mailing list