[wp-trac] [WordPress Trac] #11077: Should be able to attach images right away to a new post

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 5 03:48:05 UTC 2009


#11077: Should be able to attach images right away to a new post
--------------------------+-------------------------------------------------
 Reporter:  markel        |       Owner:                       
     Type:  defect (bug)  |      Status:  new                  
 Priority:  normal        |   Milestone:  Unassigned           
Component:  Media         |     Version:  2.9                  
 Severity:  normal        |    Keywords:  gallery images attach
--------------------------+-------------------------------------------------
 ENV: wp trunk r12138 (2.9-rare)

 When creating a new post that has not been given a title and thus hasn't
 been autosaved, I am unable to create a gallery of newly-uploaded images.
 I can upload the images perfectly fine, but after saving changes to them,
 unexpected output appears in the Media Upload tool. I am presented with a
 blank Gallery media list—but the Gallery tab is not present and the "From
 Computer" tab is highlighted, showing the wrong content (see attached
 screenshot).

 STEPS

 1. Create a new post. Don't give it a title.[[BR]]
 2. Upload two pictures using the Media Upload tool. The Gallery tab will
 not appear. This is normal behavior.[[BR]]
 3. Click "Save all changes".

 Actual Result: The Media Upload tool displays a blank gallery list using
 the "From Computer" tab. No images are present or attached to the post.

 Expected Result: The images should be attached to the new post and appear
 using the Gallery tab.

 MORE INFO

 Naming the post after the upload operation will not reveal the images, nor
 will saving the post as a draft. The Media Upload tool does not show them
 as attached to the post and therefore there is no Gallery tab either. The
 images can be found in the Media Library tab and can be inserted into the
 post as normal. They will then attach themselves to the post as normal.

 Looking for the files in the Media Library reveals them as unattached
 images (however, on .com, they attach themselves to the Media Library
 admin page itself).

 WORKAROUND

 Give the post a title before uploading the pictures so the autosave
 operation kicks in - or manually save the post as draft. (FYI, if you
 attempt to save a draft that has no title and no content, nothing happens
 and the user is unceremoniously dumped out to edit.php - is this
 intentional behavior?)

 ADDITIONAL DETAILS

 Possibly related to #10642.

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


More information about the wp-trac mailing list