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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 21 16:10:51 GMT 2007


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

 I'm not sure why wp_insert_attachment() has a $post_parent argument. I
 don't see it used anywhere. If it's there I figure it should override the
 parent in the object so how about we rename the arg to $parent and then
 insert it into the object as post_parent if it is not zero?

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


More information about the wp-trac mailing list