Always put the author of the post in the authors dropdown, even if they have since been demoted to a role without post-saving capabilities. fixes #4458

git-svn-id: https://develop.svn.wordpress.org/trunk@6049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-06 04:46:56 +00:00
parent 459a358e04
commit 9c73d36b9a
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ addLoadEvent(focusit);
<?php
$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 ) :
?>
<fieldset id="authordiv" class="dbx-box">