(trunk - 5.1-alpha-44286)

**@since2.9.0*@deprecated3.5.0Usewp_save_image_editor_fileinstead.**@parammixed$overrideValuetoreturninsteadofsaving.Defaultnull.*@paramstring$filenameNameofthefiletobesaved.*@paramWP_Image_Editor$imageWP_Image_Editorinstance.*@paramstring$mime_typeImagemimetype.*@paramint$post_idPostID.*/$saved=apply_filters('wp_save_image_file',null,$filename,$image,$mime_type,$post_id);if(null!==$saved){return$saved;}switch($mime_type){case'image/jpeg':/** This filter is documented in wp-includes/class-wp-image-editor.php */returnimagejpeg($image,$filename,apply_filters('jpeg_quality',90,'edit_image'));