Schema error breaks XMLRPC image uploading
|Reported by:||Otto42||Owned by:||josephscott|
Issue is described in greater detail here:
Short version: Uploading an image or other attachment via XMLRPC tries to set the post_parent of the upload to -1, and then changes the value to the correct ID after the post is created and the ID is known.
In WordPress 2.8 and up, this fails, because the schema changed to define the post_parent as unsigned, so -1 becomes invalid. This disables the capability for image attachments to work via XMLRPC uploads.
Fix: Either change the way uploads work (use a 0 for post_parent perhaps?) or change the schema back to not being unsigned on post_parent.