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

WordPress Trac noreply at wordpress.org
Mon Jun 19 04:09:16 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 has-patch                     |
-------------------------------------------------+-------------------------

Comment (by askthecompgeek):

 Replying to [comment:24 tdrayson]:
 > I have been doing some testing, it seems that it's only the shortcode
 "block" that has this formatting issue.
 >
 > If you put your shortcode into a template with a paragraph block,
 everything gets rendered correctly.
 >
 > Backend - https://share.getcloudapp.com/kpul9w0K
 > Frontend - https://share.getcloudapp.com/YEu4qyLL
 >
 > Not a perfect solution as your shortcode will get wrapped with a <p>
 tag.

 Thanks... The extra formatting messes things up a bit but it does work. I
 also noticed that if you enable the Gutenverse plugin, it works with no
 code changes. I have no idea why--I'm still pretty new to WordPress.

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


More information about the wp-trac mailing list