6485* returning that value as a 500 error instead.6486*6487* @since 2.1.06488*6489* @param bool$error Whether to pre-empt the media upload.Defaultfalse.6490*/6491$upload_err=apply_filters('pre_upload_error',false);6492if($upload_err){6493returnnewIXR_Error(500,$upload_err);6494}64956496$upload=wp_upload_bits($name,null,$bits);6497if(!empty($upload['error'])){
History
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.