Changeset 14587
- Timestamp:
- 05/12/2010 08:57:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r14585 r14587 894 894 function get_post_type_capabilities( $args ) { 895 895 $defaults = array( 896 'edit_post' => 'edit_' . $args->capabilit ies['capability_type'],897 'edit_posts' => 'edit_' . $args->capabilit ies['capability_type']. 's',898 'edit_others_posts' => 'edit_others_' . $args->capabilit ies['capability_type']. 's',899 'publish_posts' => 'publish_' . $args->capabilit ies['capability_type']. 's',900 'read_post' => 'edit_' . $args->capabilit ies['capability_type'],901 'read_private_posts' => 'read_private_' . $args->capabilit ies['capability_type']. 's',902 'delete_post' => 'delete_' . $args->capabilit ies['capability_type'],896 'edit_post' => 'edit_' . $args->capability_type, 897 'edit_posts' => 'edit_' . $args->capability_type . 's', 898 'edit_others_posts' => 'edit_others_' . $args->capability_type . 's', 899 'publish_posts' => 'publish_' . $args->capability_type . 's', 900 'read_post' => 'edit_' . $args->capability_type, 901 'read_private_posts' => 'read_private_' . $args->capability_type . 's', 902 'delete_post' => 'delete_' . $args->capability_type, 903 903 ); 904 904 $labels = array_merge( $defaults, $args->capabilities );
Note: See TracChangeset
for help on using the changeset viewer.