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

WordPress Trac noreply at wordpress.org
Thu Nov 11 19:41:28 UTC 2021


#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:                |     Focuses:
--------------------------+------------------------------

Comment (by westonruter):

 Given the perils of shortcodes and sanitization, I'm not the best to
 advising on whether this change should be made.

 In any case, using a shortcode as an HTML attribute doesn't seem like the
 best approach. I'd recommend some alternative approach to adding dynamic
 attributes to custom elements. Even a plain old `the_content` filter.

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


More information about the wp-trac mailing list