Hard-code less capability types
|Reported by:||Viper007Bond||Owned by:|
We still hard-code some capability types thoughout the admin area.
For example edit_post is hard-coded as the edit attachment capability in the edit attachment pages. It should be pulled from the post type object instead so that it can be modified.
I've patched the ones I found.