Ticket #21288: 21288.diff
File 21288.diff, 552 bytes (added by , 12 years ago) |
---|
-
wp-includes/capabilities.php
1135 1135 else 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': 1140 1146 case 'add_post_meta':