Ticket #3981: xmlrpc.php.diff
| File xmlrpc.php.diff, 0.6 kB (added by redsweater, 2 years ago) |
|---|
-
xmlrpc.php
old new 1418 1418 1419 1419 $upload = wp_upload_bits($name, $type, $bits, $overwrite); 1420 1420 if ( ! empty($upload['error']) ) { 1421 logIO('O', '(MW) Could not write file '.$name); 1422 return new IXR_Error(500, 'Could not write file '.$name); 1421 $errorString = 'Could not write file ' . $name . ' (' . $upload['error'] . ')'; 1422 logIO('O', '(MW) ' . $errorString); 1423 return new IXR_Error(500, $errorString); 1423 1424 } 1424 1425 // Construct the attachment array 1425 1426 // attach to post_id -1
