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: http://svn.automattic.com/wordpress/trunk@6049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-06 04:46:56 +00:00
parent a428494291
commit f851dc2257
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ addLoadEvent(focusit);
<?php <?php
$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) )
$authors[] = $post->post_author;
if ( $authors && count( $authors ) > 1 ) : if ( $authors && count( $authors ) > 1 ) :
?> ?>
<fieldset id="authordiv" class="dbx-box"> <fieldset id="authordiv" class="dbx-box">