Changeset 15542 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 08/27/2010 01:07:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r15539 r15542 150 150 151 151 if ( post_type_supports($post_type, 'author') ) { 152 $_editable_user_ids = get_editable_user_ids( $current_user->id, true, $post_type ); // TODO: ROLE SYSTEM 153 if ( $post->post_author && !in_array($post->post_author, $_editable_user_ids) ) 154 $_editable_user_ids[] = $post->post_author; 155 156 if ( !empty($_editable_user_ids) || is_super_admin() ) 152 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) 157 153 add_meta_box('authordiv', __('Author'), 'post_author_meta_box', $post_type, 'normal', 'core'); 158 154 }
Note: See TracChangeset
for help on using the changeset viewer.