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