From 2e6e3ba76bd3b6e2a5415e0674849a15cdc90d00 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Mon, 10 May 2010 22:46:35 +0000 Subject: [PATCH] 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 --- wp-admin/edit-form-advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index ea01523973..782d8d8b4e 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -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'); }