#11077 closed defect (bug) (duplicate)
Should be able to attach images right away to a new post
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.9 |
Component: | Media | Keywords: | gallery images attach |
Focuses: | Cc: |
Description
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
- Create a new post. Don't give it a title.
- Upload two pictures using the Media Upload tool. The Gallery tab will not appear. This is normal behavior.
- 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.
Screen shot of unexpected output