6422* returning that value as a 500 error instead.6423*6424* @since 2.1.06425*6426* @param bool$error Whether to pre-empt the media upload.Defaultfalse.6427*/6428$upload_err=apply_filters('pre_upload_error',false);6429if($upload_err){6430returnnewIXR_Error(500,$upload_err);6431}64326433$upload=wp_upload_bits($name,null,$bits);6434if(!empty($upload['error'])){
History
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.