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

git-svn-id: https://develop.svn.wordpress.org/trunk@4213 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-09-23 10:14:11 +00:00
parent 4b52d9c981
commit 62dbcb5ded
1 changed files with 4 additions and 1 deletions

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">