[wp-trac] [WordPress Trac] #5588: Attachment no longer attached

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 5 18:45:59 GMT 2008


#5588: Attachment no longer attached
----------------------------+-----------------------------------------------
 Reporter:  Curioso         |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.5      
Component:  Administration  |     Version:  2.3.2    
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 Tested on WP 2.3.2 without any plugins activated.

 1. Start write new post "Post 1"

 2. Upload picture in Upload tab
 (picture appears in write tab)

 3. Insert picture in post (not really necessary)

 4. Publish

 5. Start write new post "Post 2"

 6. Goto Browse all tab

 7. Change e.g. decription of picture uploaded in step 2

 8. Goto mamage posts and edit Post 1

 9. Picture no longer appears in Browse tab, only in Browse All tab

 The reason is the way post_parent is updated when updating attachments.
 In the Browse All tab you have attachments from different post_parents.
 If you update such an attachment its post_parent is set to the current
 post, which is a large negative number (temp_ID) when you are in the write
 new post screen.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5588>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list