[wp-trac] [WordPress Trac] #10521: Schema error breaks XMLRPC image uploading

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 25 18:28:48 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 Otto42):

 Replying to [comment:17 leenewton]:
 > 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.

 Ahh, yes. Missed that bit. Fair enough.

 Still would be a problem of speed if you've got a few thousand zero'd
 attachments.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10521#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list