From b30b30b943c694ced3e1e2bd3ba4e6bb775697f4 Mon Sep 17 00:00:00 2001 From: Ron Rennick 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: https://develop.svn.wordpress.org/trunk@14554 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'); }