Limit to 5
git-svn-id: http://svn.automattic.com/wordpress/trunk@10080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eeefaa41f8
commit
af91c84737
|
@ -411,9 +411,13 @@ function wp_dashboard_recent_comments() {
|
||||||
|
|
||||||
<div id="the-comment-list" class="list:comment">
|
<div id="the-comment-list" class="list:comment">
|
||||||
<?php
|
<?php
|
||||||
|
$count = 0;
|
||||||
foreach ( $comments as $comment ) {
|
foreach ( $comments as $comment ) {
|
||||||
|
if ( $count >= 5 )
|
||||||
|
break;
|
||||||
if ( in_array($comment->comment_approved, $allowed_states) )
|
if ( in_array($comment->comment_approved, $allowed_states) )
|
||||||
_wp_dashboard_recent_comments_row( $comment );
|
_wp_dashboard_recent_comments_row( $comment );
|
||||||
|
$count++;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue