[wp-hackers] Uploads 2.0 vs 2.1

Matt Mullenweg m at mullenweg.com
Sun Feb 11 18:42:27 GMT 2007


Aaron D. Campbell wrote:
> In 2.0.x, uploads seemed to be attached to a specific post (post_parent 
> was set to the post you were writing when you uploaded it).  Now in 2.1, 
> it seems that they belong to nothing (post_parent is -1170977629).  Am I 
> correct in stating that there is no way to tell what post they are 
> supposed to go with?

It only does the negative post_parent when you're attaching things to a 
post that hasn't been saved yet. After it's published, or saved as a 
draft, it should update the post_parent ID to point to the correct place 
in the database.

-- 
Matt Mullenweg
  http://photomatt.net | http://wordpress.org
http://automattic.com | http://akismet.com


More information about the wp-hackers mailing list