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:
parent
fe36459597
commit
e685b5edc2
|
@ -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