Changeset 22056
- Timestamp:
- 09/27/2012 12:48:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r21940 r22056 1136 1136 $caps = map_meta_cap( 'edit_post', $user_id, $post->ID ); 1137 1137 break; 1138 case 'publish_post': 1139 $post = get_post( $args[0] ); 1140 $post_type = get_post_type_object( $post->post_type ); 1141 1142 $caps[] = $post_type->cap->publish_posts; 1143 break; 1138 1144 case 'edit_post_meta': 1139 1145 case 'delete_post_meta':
Note: See TracChangeset
for help on using the changeset viewer.