[wp-trac] [WordPress Trac] #11145: No gallery tab after upload if post hasn't been saved yet

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 15 22:07:04 UTC 2009


#11145: No gallery tab after upload if post hasn't been saved yet
--------------------------+-------------------------------------------------
 Reporter:  yoavf         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Gallery       |     Version:  2.9
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
Changes (by jeffstieler):

 * cc: jeffstieler (added)


Comment:

 What is the correct course of action to fix this?

 I see a few ways of dealing with this:

 1. Autosave just a post ID upon entering the media uploader so there is a
 valid parent post.

 2. Show a warning to the user upon entering media uploader when there is
 no post ID, that the media they upload at that point will not have an
 associated post, and patch get_media_items() to deal with invalid post
 IDs.

 3. Disallow uploading media to a post without an autosave.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11145#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list