diff --git a/wp-includes/post.php b/wp-includes/post.php index 15528c8ef0..14e31ef96c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1019,7 +1019,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. $default_capabilities['edit_others_posts'] = $default_capabilities['edit_posts']; - $default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts']; + if ( $args->map_meta_cap ) + $default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts']; } $capabilities = array_merge( $default_capabilities, $args->capabilities );