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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-12-07 18:32:07 +00:00
parent 5ce0d9cb7a
commit 4cfb079fc5
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);