[wp-testers] Upload via XMLRPC broken in 2.0

ecto Support ecto at kung-foo.tv
Thu Dec 29 02:00:47 GMT 2005


I did a var_dump $upload in line 855 in xmlrpc.php:

		$upload = wp_upload_bits($name, $type, $bits);

And this gets me:

array(2) {
   ["file"]=>
   string(71) "/Users/adriaant/Sites/wordpress/wp-content/uploads/ 
2005/12/testfile.jpg"
   ["url"]=>
   string(82) "http://acalculia.local/~adriaant/wordpress/wp-content/ 
uploads/2005/12/testfile.jpg"
}

line 857 fails on
	if ( $upload['error'] !== false )

Changing it to
	if ( $upload['error'] )

works.

Adriaan



More information about the wp-testers mailing list