Limit to 5

git-svn-id: https://develop.svn.wordpress.org/trunk@10080 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-05 23:49:47 +00:00
parent d31387d674
commit 69719e8945
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++;
}
?>