[wp-trac] [WordPress Trac] #9471: Attachments uploaded before post is saved or autosaved get 0 (zero) for post_parent (instead of temp_id value)

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 5 07:58:45 UTC 2009


#9471: Attachments uploaded before post is saved or autosaved get 0 (zero) for
post_parent (instead of temp_id value)
--------------------------+-------------------------------------------------
 Reporter:  aesqe         |       Owner:  scribu                 
     Type:  defect (bug)  |      Status:  accepted               
 Priority:  normal        |   Milestone:  2.9                    
Component:  Media         |     Version:  2.8                    
 Severity:  blocker       |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by scribu):

 Replying to [comment:45 azaozz]:

 That could work, but we have to be careful about wp_write_post():

 {{{
 if ( time() + $temp > 86400 ) // 1 day: $temp is equal to -1 * time( then
 )
 }}}

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


More information about the wp-trac mailing list