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

WordPress Trac noreply at wordpress.org
Mon May 22 13:56:09 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:                 |     Focuses:
---------------------------+------------------------------

Comment (by jim5471):

 @domainsupport, @bekk - Just trying to understand the issue..

 If you return inline script in this way do you get problems ?


 {{{#!php
 <?php
 add_shortcode( 'xxx', function(){
         return "<!-- wp:html --><script><!-- code here /--></script><!--
 /wp:html -->";
         });
 }}}

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


More information about the wp-trac mailing list