[wp-trac] [WordPress Trac] #23103: Non image caption shortcode lost when switching from text to visual editor and back

WordPress Trac noreply at wordpress.org
Wed Feb 13 05:56:05 UTC 2013


#23103: Non image caption shortcode lost when switching from text to visual editor
and back
--------------------------+------------------------------
 Reporter:  mark-k        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by trepmal):

 Seems related, though I haven't checked pre-3.5. If you have a normal
 captioned image, but remove the width attribute, for example:

 {{{
 [caption id="attachment_67" align="alignnone" width="300"]
 <img class="size-medium wp-image-67" alt="caption"
 src="http://local.dev/stable/wp-content/uploads/2012/11/cropped-tree-
 300x149.png" height="149" /> caption[/caption]
 }}}

 Then switching to visual and back strips away the shortcode entirely
 leaving you with:
 {{{
 <img class="size-medium wp-image-67" alt="caption"
 src="http://local.dev/stable/wp-content/uploads/2012/11/cropped-tree-
 300x149.png" height="149" />
 }}}

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


More information about the wp-trac mailing list