Pass NULL as second arg to wp_upload_bits() to avoid deprecated warning. Props koke. fixes #15698

git-svn-id: https://develop.svn.wordpress.org/trunk@16769 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-07 18:32:07 +00:00
parent fcfb406c7c
commit d150dcd964
1 changed files with 1 additions and 1 deletions

View File

@ -2941,7 +2941,7 @@ class wp_xmlrpc_server extends IXR_Server {
$name = "wpid{$old_file->ID}-{$filename}";
}
$upload = wp_upload_bits($name, $type, $bits);
$upload = wp_upload_bits($name, NULL, $bits);
if ( ! empty($upload['error']) ) {
$errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']);
logIO('O', '(MW) ' . $errorString);