Make WordPress Core

Ticket #39059: 39059.diff

File 39059.diff, 1.3 KB (added by flixos90, 9 years ago)
  • src/wp-admin/edit-form-advanced.php

     
    309309        add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core');
    310310
    311311if ( 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 ) ) {
    313313                add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core');
     314        }
    314315}
    315316
    316317/**
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    14201420                if ( post_type_supports( $screen->post_type, 'author' ) ) :
    14211421                        $authors_dropdown = '';
    14221422
    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 ) ) :
    14241424                                $users_opt = array(
    14251425                                        'hide_if_only_one_author' => false,
    14261426                                        'who' => 'authors',