[wp-trac] [WordPress Trac] #13358: Switch post type and tax capabilities to a single 'cap' property
WordPress Trac
wp-trac at lists.automattic.com
Tue May 11 20:05:55 UTC 2010
#13358: Switch post type and tax capabilities to a single 'cap' property
-----------------------------+----------------------------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Role/Capability | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Like what we're doing in #12968 and #13357 with labels.
Thus:
{{{
$pt->cap->edit_post
$pt->cap->edit_posts
$pt->cap->edit_others_posts
}}}
Etc.
By basing them off what they are called for posts, we reduce confusion
significantly (it's also the default) and we prevent errors like [13955]
which caused quite a headache, and MarkJaquith and I spent maybe an hour
tracking that down.
Patches welcome, otherwise I'll get to it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13358>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list