farinspace/wpalchemy — pull request #64 by Kevinlearynet (2013-02-19 17:43:35+00:00)
Title: Add _save method to `attachment` post type actions

I've added a metabox to media attachments for a project I'm working on. At first the metabox fields weren't saving values. I discovered that the built-in "attachment" post type doesn't use the `save_post` action and instead uses `edit_attachment` and `add_attachment`. This patch fixes the saving issue and allows custom meta boxes to be attached to the `attachment` post type.