Ticket #39059: 39059.diff
| File 39059.diff, 1.3 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/edit-form-advanced.php
309 309 add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core'); 310 310 311 311 if ( post_type_supports($post_type, 'author') ) { 312 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) )312 if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) { 313 313 add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core'); 314 } 314 315 } 315 316 316 317 /** -
src/wp-admin/includes/class-wp-posts-list-table.php
1420 1420 if ( post_type_supports( $screen->post_type, 'author' ) ) : 1421 1421 $authors_dropdown = ''; 1422 1422 1423 if ( is_super_admin() ||current_user_can( $post_type_object->cap->edit_others_posts ) ) :1423 if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) : 1424 1424 $users_opt = array( 1425 1425 'hide_if_only_one_author' => false, 1426 1426 'who' => 'authors',