Some capability checks need update for custom post types
|Reported by:||duck_||Owned by:|
Create new custom post type (e.g. album) with capability_type page. Create new subscriber and add necessary capabilities to interact with the new post type (most importantly edit_others_pages, publish_pages and edit_published_pages). If you login as the new user and try to publish a new album post it will only create a album post with status pending. Also if you try to edit an album post created by a different user when you click update WordPress dies with the error 'You are not allowed to edit posts as this user.'
Cause of both of these problems is in _wp_translate_postdata.