allow super admins to edit authors on all sites, props mtdewvirus, fixes #13270
git-svn-id: http://svn.automattic.com/wordpress/trunk@14554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a30ceb26d
commit
2e6e3ba76b
|
@ -149,7 +149,7 @@ if ( post_type_supports($post_type, 'author') ) {
|
||||||
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
|
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
|
||||||
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||||
$authors[] = $post->post_author;
|
$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');
|
add_meta_box('authordiv', __('Author'), 'post_author_meta_box', $post_type, 'normal', 'core');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue