Changeset 16825
- Timestamp:
- 12/08/2010 10:07:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r16820 r16825 1095 1095 } 1096 1096 1097 if ( ! post_type_supports( $args->name, 'author' ) ) {1098 // While these may be checked in core, users/roles shouldn't need to be1099 // granted these by default if the post type doesn't support authors.1100 $default_capabilities['edit_others_posts'] = $default_capabilities['edit_posts'];1101 if ( $args->map_meta_cap )1102 $default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts'];1103 }1104 1105 1097 $capabilities = array_merge( $default_capabilities, $args->capabilities ); 1106 1098
Note: See TracChangeset
for help on using the changeset viewer.