[wp-trac] [WordPress Trac] #37238: Right-aligned captions with embedded iframes get removed in Visual mode

WordPress Trac noreply at wordpress.org
Fri Apr 19 21:12:31 UTC 2019


#37238: Right-aligned captions with embedded iframes get removed in Visual mode
--------------------------+---------------------
 Reporter:  ChrisBAshton  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:
Component:  Shortcodes    |     Version:  4.5.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------
Changes (by desrosj):

 * component:  Posts, Post Types => Shortcodes
 * milestone:  Awaiting Review =>


Comment:

 Hi @ChrisBAshton,

 Welcome to Trac! And thanks for this ticket. My apologies that it took so
 long to receive a response.

 The `[caption]` shortcode is actually
 [https://core.trac.wordpress.org/browser/tags/5.1.1/src/wp-
 includes/media.php#L1518 only meant to be used with] `<a>` and `<img />`
 tags. I think this is working as expected.

 I am going to close this out, but if you feel `<iframe>`s should be
 allowed within captions, feel free to reopen with some more details.

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


More information about the wp-trac mailing list