WordPress.org

Make WordPress Core

Changeset 10080


Ignore:
Timestamp:
12/05/2008 11:49:47 PM (12 years ago)
Author:
ryan
Message:

Limit to 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r10079 r10080  
    412412        <div id="the-comment-list" class="list:comment">
    413413<?php
     414        $count = 0;
    414415        foreach ( $comments as $comment ) {
     416            if ( $count >= 5 )
     417                break;
    415418            if ( in_array($comment->comment_approved, $allowed_states) )
    416419                _wp_dashboard_recent_comments_row( $comment );
     420            $count++;
    417421        }
    418422?>
Note: See TracChangeset for help on using the changeset viewer.