[wp-trac] Re: [WordPress Trac] #6657: Uploader Gallery tab is empty if draft post has not been saved

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 10 03:11:08 GMT 2008


#6657: Uploader Gallery tab is empty if draft post has not been saved
------------------------+---------------------------------------------------
 Reporter:  tellyworth  |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:  2.5.1    
Component:  General     |      Version:  2.5      
 Severity:  normal      |   Resolution:           
 Keywords:  has-patch   |  
------------------------+---------------------------------------------------
Changes (by tellyworth):

  * keywords:  => has-patch

Comment:

 The bug is in the code at the top of get_media_items().  The code that
 fetches images there is conditional on get_post($post_id) - since the
 draft post has not yet been created, the conditional fails.

 The patch fixes it.  It appears not to break anything else but could use
 more regression testing.

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


More information about the wp-trac mailing list