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:
parent
5ce0d9cb7a
commit
4cfb079fc5
|
@ -2941,7 +2941,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$name = "wpid{$old_file->ID}-{$filename}";
|
$name = "wpid{$old_file->ID}-{$filename}";
|
||||||
}
|
}
|
||||||
|
|
||||||
$upload = wp_upload_bits($name, $type, $bits);
|
$upload = wp_upload_bits($name, NULL, $bits);
|
||||||
if ( ! empty($upload['error']) ) {
|
if ( ! empty($upload['error']) ) {
|
||||||
$errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']);
|
$errorString = sprintf(__('Could not write file %1$s (%2$s)'), $name, $upload['error']);
|
||||||
logIO('O', '(MW) ' . $errorString);
|
logIO('O', '(MW) ' . $errorString);
|
||||||
|
|
Loading…
Reference in New Issue