Don't check post_type_supports in map_meta_cap. see #14122.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2010-11-17 06:21:34 +00:00
parent aef807694c
commit e5f944a913
2 changed files with 8 additions and 10 deletions
+2 -1
View File
@@ -1086,7 +1086,8 @@ function get_post_type_capabilities( $args ) {
}
if ( ! post_type_supports( $args->name, 'author' ) ) {
// While these may be checked in core, users/roles shouldn't need to be granted these.
// While these may be checked in core, users/roles shouldn't need to be
// granted these by default if the post type doesn't support authors.
$default_capabilities['edit_others_posts'] = $default_capabilities['edit_posts'];
if ( $args->map_meta_cap )
$default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts'];