diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index f1ec72d05..6b4ff464d 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -61,11 +61,21 @@ if (isset($_GET['s'])) { comment_content LIKE ('%$s%') ORDER BY comment_date DESC"); } else { - $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments ORDER BY comment_date DESC LIMIT 20"); + if ( isset($_GET['offset']) ) + $offset = (int) $_GET['offset'] * 20; + else + $offset = 0; + + $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments ORDER BY comment_date DESC LIMIT $offset,20"); } if ('view' == $mode) { if ($comments) { - echo '
    '; + if ($offset) + $start = " start='$offset'"; + else + $start = ''; + + echo "
      "; $i = 0; foreach ($comments as $comment) { ++$i; $class = ''; @@ -92,9 +102,16 @@ if ('view' == $mode) { ?> |

      - '; + +
    +
    +

    + + +

    +
    + +