[wp-trac] [WordPress Trac] #12097: Inserting image captions sometimes results in malformed HTML

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 11 19:22:30 UTC 2010


#12097: Inserting image captions sometimes results in malformed HTML
--------------------------+-------------------------------------------------
 Reporter:  essday        |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Media         |     Version:  2.9.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by nmarcisso):

 I am getting a similar issue where wordpress is removing the caption tag
 when being published.

 '''In Editor'''
 {{{
 [caption id="attachment_3787" align="alignleft" width="300"
 caption="Twisted fun! Most of the trails at Black Mountain follow the
 contours of the slope, not the needs of grooming machines. That’s where
 the fun is! (Tim Jones photo)"]<a href="http://easternslopes.com/wp-
 content/uploads/2010/02/Blackslope1-H.jpg"><img class="size-medium wp-
 image-3787" title="Blackslope1-H" src="http://easternslopes.com/wp-
 content/uploads/2010/02/Blackslope1-H-300x214.jpg" alt="" width="300"
 height="214" /></a>[/caption]
 }}}

 '''Published Code'''
 {{{
 <a href="http://easternslopes.com/wp-
 content/uploads/2010/02/Blackslope1-H.jpg" title="Blackslope1-H"
 rel="lightbox[3785]"><img class="size-medium wp-image-3787"
 title="Blackslope1-H" src="http://easternslopes.com/wp-
 content/uploads/2010/02/Blackslope1-H-300x214.jpg" alt="" width="300"
 height="214" /></a>
 }}}

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


More information about the wp-trac mailing list