[wp-trac] [WordPress Trac] #10521: Schema error breaks XMLRPC image uploading
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 25 18:26:14 UTC 2009
#10521: Schema error breaks XMLRPC image uploading
--------------------------+-------------------------------------------------
Reporter: Otto42 | Owner: josephscott
Type: defect (bug) | Status: new
Priority: high | Milestone: Unassigned
Component: XML-RPC | Version: 2.8
Severity: major | Keywords: dev-feedback
--------------------------+-------------------------------------------------
Comment(by leenewton):
Replying to [comment:16 Otto42]:
> It wouldn't loop through them every time. It'd attach them all to the
first post made via XML-RPC. Then they wouldn't have a post_parent of zero
any more.
Not to nitpick but that's not how I read the xmlrpc, mw_newPost calls
attach_uploads which will only change the post_parent if( strpos(
$post_content, $file->guid ) !== false ) if an img src match isn't found
while processing the post uploaded via xmlrpc then nothing happens and all
those images will be involved in subsequent post creation. So while this
will capture and reassign the image you uploaded, all other post_parent =
0 rows will remain untouched.
> Clearly, using zero instead of -1 isn't a viable option, because having
attachment posts with a zero parent is possible using the normal media
uploader, which creates "unattached" attachment posts.
What he said.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10521#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list