Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 10 years ago

#11077 closed defect (bug) (duplicate)

Should be able to attach images right away to a new post

Reported by: markel's profile markel 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

  1. Create a new post. Don't give it a title.
  2. Upload two pictures using the Media Upload tool. The Gallery tab will not appear. This is normal behavior.
  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.

Attachments (1)

Screen shot 2009-11-02 at 11.17.58 PM.png (28.0 KB) - added by markel 15 years ago.
Screen shot of unexpected output

Download all attachments as: .zip

Change History (6)

@markel
15 years ago

Screen shot of unexpected output

#1 follow-up: @markel
15 years ago

Also likely related to #9471.

#2 @scribu
15 years ago

  • Milestone changed from Unassigned to 2.9

#3 @markel
15 years ago

Created #11082 as a separate ticket regarding the edit.php parenthetical at the end of this ticket.

#4 in reply to: ↑ 1 @azaozz
15 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Same reason as #9471.

#5 @DrewAPicture
10 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.