Limit to 5

git-svn-id: http://svn.automattic.com/wordpress/trunk@10080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-12-05 23:49:47 +00:00
parent eeefaa41f8
commit af91c84737
1 changed files with 4 additions and 0 deletions

View File

@ -411,9 +411,13 @@ function wp_dashboard_recent_comments() {
<div id="the-comment-list" class="list:comment">
<?php
$count = 0;
foreach ( $comments as $comment ) {
if ( $count >= 5 )
break;
if ( in_array($comment->comment_approved, $allowed_states) )
_wp_dashboard_recent_comments_row( $comment );
$count++;
}
?>