mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Don't check post_type_supports in map_meta_cap. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@16422 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user