[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 13:15:28 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  |  
----------------------------------------------+-----------------------------
Comment (by Curioso):

 A working solution is to include array('post_id' => '') as 5th entry in
 $wp_upload_tabs['browse-all'] in upload.php. This resets the post_id
 argument, and upload.js already tests on this.

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


More information about the wp-trac mailing list