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:
parent
85e8b827d2
commit
4be265b167
|
@ -284,21 +284,23 @@ function wp_dashboard_recent_comments( $sidebar_args ) {
|
||||||
?>
|
?>
|
||||||
<blockquote><p>“<?php comment_excerpt(); ?>”</p></blockquote>
|
<blockquote><p>“<?php comment_excerpt(); ?>”</p></blockquote>
|
||||||
<p class='comment-meta'><?php echo $comment_meta; ?></p>
|
<p class='comment-meta'><?php echo $comment_meta; ?></p>
|
||||||
|
<?php
|
||||||
|
if ( $comments_query->comment_count > 1 ) : ?>
|
||||||
<ul id="dashboard-comments-list">
|
<ul id="dashboard-comments-list">
|
||||||
<?php
|
<?php
|
||||||
else :
|
endif; // comment_count
|
||||||
|
else : // is_first
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<li class='comment-meta'><?php echo $comment_meta; ?></li>
|
<li class='comment-meta'><?php echo $comment_meta; ?></li>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif; // is_first
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
|
if ( $comments_query->comment_count > 1 ) : ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
endif; // comment_count;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue