Don't show post author box unless there is more than one author to show.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-09-23 10:14:11 +00:00
parent 43c41ff8b2
commit 9c9a429320

View File

@ -115,7 +115,10 @@ addLoadEvent(focusit);
</fieldset>
<?php endif; ?>
<?php if ( $authors = get_editable_authors( $current_user->id ) ) : // TODO: ROLE SYSTEM ?>
<?php
$authors = get_editable_authors( $current_user->id ); // TODO: ROLE SYSTEM
if ( $authors && count( $authors ) > 1 ) :
?>
<fieldset id="authordiv" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Post Author'); ?>:</h3>
<div class="dbx-content">