[wp-trac] [WordPress Trac] #14122: Custom "capabilities" appears broken on custom post types
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 13 01:10:20 UTC 2010
#14122: Custom "capabilities" appears broken on custom post types
----------------------------+-----------------------------------------------
Reporter: jakemgold | Owner: nacin
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 3.1
Component: Post Types | Version: 3.0
Severity: normal | Keywords: needs-patch needs-unit-tests
----------------------------+-----------------------------------------------
Comment(by nacin):
Two more patches attached based on further testing for inconsistencies and
regressions.
[attachment:14122.capability_type.post.diff] allows capability_type =
'post' to kick on map_meta_cap, provided that no custom caps were defined.
This makes sense to commit.
[attachment:14122.remove.post_type_supports.author.diff] would remove the
post_type_supports('author') checks on edit_others_posts and
delete_others_posts. The side effects could be interesting if people are
storing and retrieving post_author (and even expecting caps to be mapped
on it), and simply using 'supports' for the meta boxes and quick edit
field. This seems to be what people have been doing with the 'supports'
args, unfortunately, so it is probably best to pull this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14122#comment:47>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list