[wp-trac] [WordPress Trac] #20369: HTML captions: Using double quotes for attributes breaks the ouput

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 6 01:32:02 UTC 2012


#20369: HTML captions: Using double quotes for attributes breaks the ouput
--------------------------+------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Editor        |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------

Comment (by azaozz):

 Yes, when typing the caption shortcode by hand in the HTML editor (did you
 really do that?) care should be taken to use the right quotes.

 Things like `[shortcode arg="<tag attr="1">"]` would of course break it
 same as any other string in PHP, JS, etc.

 This is the only case where that could happen, in all other cases quotes
 are automatically converted to the proper format. Also when the shortcode
 is inserted from the media library popup (regardless of which editor is
 used), the quotes are in the right format (converted when needed).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20369#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list