xwp / wp-settings-revisions

Settings Revisions plugin for WordPress
http://wordpress.org/plugins/settings-revisions/
Other
25 stars 7 forks source link

Remove ability to add new revision posts in admin #30

Closed westonruter closed 10 years ago

westonruter commented 10 years ago

In the admin there is a Settings Revisions post type visible in the menu, and along with it there is an option to create "New Post". New posts should only be created programmatically, so the cap to add new posts should be removed.

kucrut commented 10 years ago

@westonruter If we were to remove the create_posts cap from the post type, wouldn't it prevent us from creating the posts programmatically too?

westonruter commented 10 years ago

@kucrut that's a great question! I don't actually know.

kucrut commented 10 years ago

I believe, instead of messing with the cap, we should just remove the sub-menu using remove_submenu_page() as added in #33