[wp-trac] [WordPress Trac] #52517: Shortcodes inside AMP tags do not work

WordPress Trac noreply at wordpress.org
Sun Nov 20 03:51:03 UTC 2022


#52517: Shortcodes inside AMP tags do not work
--------------------------+------------------------------
 Reporter:  Krstarica     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by costdev):

 Similar to Weston - if there's an alternative approach that you think is
 feasible, I'd recommend using it.

 However, I can verify that this example from the working group link above
 fails tests:

 {{{#!php
 array(
         'element'  => '<flag-icon country="nl">',
         'expected' => array( '<flag-icon ', 'country="nl"', '>' ),
 ),
 }}}

 I think this should be supported by `wp_kses_attr_parse()`, and the above
 example passes with [https://github.com/WordPress/wordpress-
 develop/pull/3642 PR 3642].

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


More information about the wp-trac mailing list