WordPress.org

Make WordPress Core

Ticket #13270: super-admin-edit-authors.diff

File super-admin-edit-authors.diff, 629 bytes (added by mtdewvirus, 4 years ago)
  • wp-admin/edit-form-advanced.php

     
    149149        $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM 
    150150        if ( $post->post_author && !in_array($post->post_author, $authors) ) 
    151151                $authors[] = $post->post_author; 
    152         if ( $authors && count( $authors ) > 1 ) 
     152        if ( ( $authors && count( $authors ) > 1 ) || is_super_admin() ) 
    153153                add_meta_box('authordiv', __('Author'), 'post_author_meta_box', $post_type, 'normal', 'core'); 
    154154} 
    155155