[wp-trac] Re: [WordPress Trac] #5010: Bug in Updating attachment of a post = loosing post_parent

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 5 11:15:58 GMT 2008


#5010: Bug in Updating attachment of a post = loosing post_parent
----------------------------------------------+-----------------------------
 Reporter:  michelwp                          |        Owner:  anonymous
     Type:  defect                            |       Status:  reopened 
 Priority:  high                              |    Milestone:  2.3      
Component:  Administration                    |      Version:  2.2.3    
 Severity:  major                             |   Resolution:           
 Keywords:  attachment post_parent has-patch  |  
----------------------------------------------+-----------------------------
Changes (by Curioso):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 When you are in a write new post window, post_id is set to temp_ID, which
 is a large negative number. This ends up as the post_parent of atachments
 that are updated in the browse-all tab, so these attachments get a parent
 set to this large negative number, which confuses WordPress.

 Also if you are in the edit post window and update an attachment in the
 browse-all tab, it is moved to the post that you are editing and is lost
 in the post where it was originally attached.

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


More information about the wp-trac mailing list