6518* returning that value as a 500 error instead.6519*6520* @since 2.1.06521*6522* @param bool$error Whether to pre-empt the media upload.Defaultfalse.6523*/6524$upload_err=apply_filters('pre_upload_error',false);6525if($upload_err){6526returnnewIXR_Error(500,$upload_err);6527}65286529$upload=wp_upload_bits($name,null,$bits);6530if(!empty($upload['error'])){
History
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.