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

git-svn-id: http://svn.automattic.com/wordpress/trunk@7429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-20 22:01:27 +00:00
parent 85e8b827d2
commit 4be265b167

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;
}