[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 10 09:41:51 UTC 2010
#9674: Better support for custom post types
------------------------------------+---------------------------------------
Reporter: wnorris | Owner: ryan
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch tested early |
------------------------------------+---------------------------------------
Comment(by sirzooro):
We should also start thinking about capabilities here. Now we have
following capabilities available for posts:
* read_private_posts
* edit_posts
* edit_others_posts
* edit_published_posts
* edit_private_posts
* publish_posts
* delete_posts
* delete_others_posts
* delete_published_posts
* delete_private_posts
We also have few meta capabilities:
* read_post
* edit_post
* delete_post
I think we should have something similar for custom post types. At least
we should provide general capabilities for working with custom post types
(e.g. `edit_custom_posts`, `delete_custom_posts`, and meta caps like
`read_custom_post`). Caps specific for each post type (like
`edit_$post_type`) can be left for plugins - we need to provide
appropriate API only.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:146>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list