allow super admins to edit authors on all sites, props mtdewvirus, fixes #13270

git-svn-id: https://develop.svn.wordpress.org/trunk@14554 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-05-10 22:46:35 +00:00
parent dddb4b9326
commit b30b30b943
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ if ( post_type_supports($post_type, 'author') ) {
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
if ( $post->post_author && !in_array($post->post_author, $authors) )
$authors[] = $post->post_author;
if ( $authors && count( $authors ) > 1 )
if ( ( $authors && count( $authors ) > 1 ) || is_super_admin() )
add_meta_box('authordiv', __('Author'), 'post_author_meta_box', $post_type, 'normal', 'core');
}