Changeset 39539
- Timestamp:
- 12/07/2016 10:08:52 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r39326 r39539 309 309 add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core'); 310 310 311 if ( post_type_supports($post_type, 'author') ) { 312 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) 313 add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core'); 311 if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_object->cap->edit_others_posts ) ) { 312 add_meta_box( 'authordiv', __( 'Author' ), 'post_author_meta_box', null, 'normal', 'core' ); 314 313 } 315 314 -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r39210 r39539 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,
Note: See TracChangeset
for help on using the changeset viewer.