[wp-trac] Re: [WordPress Trac] #8888: Inserting image without caption permanently erases attachment post_excerpt; can't insert image with alt text and no caption

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 20 04:35:32 GMT 2009


#8888: Inserting image without caption permanently erases attachment post_excerpt;
can't insert image with alt text and no caption
--------------------------------------------------+-------------------------
 Reporter:  Sam_a                                 |        Owner:  anonymous
     Type:  defect (bug)                          |       Status:  reopened 
 Priority:  normal                                |    Milestone:  2.8      
Component:  General                               |      Version:           
 Severity:  normal                                |   Resolution:           
 Keywords:  2nd-opinion needs-patch media-upload  |  
--------------------------------------------------+-------------------------
Changes (by Sam_a):

  * status:  closed => reopened
  * type:  enhancement => defect (bug)
  * component:  UI => General
  * summary:  Can't insert image without caption (unless you erase
              attachment's post_excerpt field) => Inserting
              image without caption permanently erases
              attachment post_excerpt; can't insert image
              with alt text and no caption
  * keywords:  needs-patch media-upload => 2nd-opinion needs-patch media-
               upload
  * resolution:  wontfix =>

Comment:

 I agree with all of the "expected behavior" of the Insert Image dialog
 mentioned above, but there are 2 defects here:

  * When inserting an image alone (without printed caption), alternative
 text should come from the dialog field labeled ''Also used as alternate
 text for the image''. That doesn't happen.
  * Authors should be able to insert an un-captioned image at any one time
 without permanently erasing attachment data. (Remember an attachment's
 `post_excerpt` field is used in places besides the Insert Media dialog.)

 An example will help:

 I have a bunch of images in my Media Library. When I upload them, I fill
 in the ''caption'' field. Mostly I show them in my templates. Sometimes I
 want to insert them into posts/Pages using the convenient Insert Image
 dialog.

 I want to insert an image by itself (no printed caption), so I have to
 clear what I wrote earlier from the dialog's ''caption'' field and click
 "Insert". That empties alternative text in the inserted image (not what I
 wanted) '''and''' erases the caption and alt text on the published
 attachment page and anywhere else I use the `attachment_link` and
 `attachment_image` template tags. And if I later want to insert that image
 with a printed caption, I would have to write and save the caption text
 all over again. Then erase it if I want to omit the caption. Then repeat.

 I'm not committed to any particular UI solution in the Insert Image
 dialog, but it should be fixed somehow.

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


More information about the wp-trac mailing list