Remove post_type_supports check from register_post_type caps all together. fixes #14122.

git-svn-id: https://develop.svn.wordpress.org/trunk@16825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-08 22:07:29 +00:00
parent daadad84a6
commit 6fcde6c9fe
1 changed files with 0 additions and 8 deletions

View File

@ -1094,14 +1094,6 @@ function get_post_type_capabilities( $args ) {
$default_capabilities = array_merge( $default_capabilities, $default_capabilities_for_mapping );
}
if ( ! post_type_supports( $args->name, 'author' ) ) {
// 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'];
}
$capabilities = array_merge( $default_capabilities, $args->capabilities );
// Remember meta capabilities for future reference.