[wp-trac] [WordPress Trac] #22720: Insert Media produces inconsistent results (depending on captions)

WordPress Trac noreply at wordpress.org
Tue Dec 4 09:39:12 UTC 2012


#22720: Insert Media produces inconsistent results (depending on captions)
-----------------------------+--------------------------
 Reporter:  tar.gz           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 While testing the media uploader in WP 3.5-RC3, I notice the following
 inconsistencies when using Insert Media on several images:

 (1): When inserting ''several single images'' ("Insert Media") with the
 editor in ''Text'' mode, we get one huge block of code, with no line
 returns between the images. That's not convenient if the user intends to
 write something between the single images (which is likely the intent,
 otherwise the user would do "Create Gallery").

 In Visual mode, we get a line return - but only between the images that
 have a caption.

 (2) Images ''without'' caption are nested as p > a > img (whith no spacing
 inbetween images), while each image ''with'' caption is wrapped in a div
 .wp-caption block -- which in the TwentyTwelve theme gives them 4px of
 padding. This will result in an uneven look.

 (3) When working in the Visual editor, and inserting series of images,
 ''sometimes'' the captions get the WYSIWYG treatment, ''sometimes'' they
 show up with the shortcode. After some testing, I notice that ''if the
 first image has a caption'', all the captions are rendered as WYSIWYG. If
 the ''first image'' is ''without'' caption, all further captions are
 showing up as shortcode.

 Expected result:

 * Every image inserted through the Insert Media method should be nested in
 the same way (inside a div.wp-caption, not in a p), so the theme author
 can achieve a consistent look.
 * There should be a line return between each item, so a blogger using the
 text mode can easily insert text between the images.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22720>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list