Fix dash markup when there's only one comment. Props mdawaffe. fixes #6306

git-svn-id: https://develop.svn.wordpress.org/trunk@7429 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-20 22:01:27 +00:00
parent fe36459597
commit e685b5edc2
1 changed files with 7 additions and 5 deletions

View File

@ -284,21 +284,23 @@ function wp_dashboard_recent_comments( $sidebar_args ) {
?>
<blockquote><p>&#8220;<?php comment_excerpt(); ?>&#8221;</p></blockquote>
<p class='comment-meta'><?php echo $comment_meta; ?></p>
<?php
if ( $comments_query->comment_count > 1 ) : ?>
<ul id="dashboard-comments-list">
<?php
else :
endif; // comment_count
else : // is_first
?>
<li class='comment-meta'><?php echo $comment_meta; ?></li>
<?php
endif;
endif; // is_first
}
?>
if ( $comments_query->comment_count > 1 ) : ?>
</ul>
<?php
endif; // comment_count;
}