From 1114fab5b648fff4e1525cf87e0c50f14a77a4db Mon Sep 17 00:00:00 2001
From: saxmatt
Date: Tue, 5 Oct 2004 07:25:21 +0000
Subject: [PATCH] Page comments
git-svn-id: http://svn.automattic.com/wordpress/trunk@1745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/edit-comments.php | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
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 '
- ';
+
+
+
+
+
"; $i = 0; foreach ($comments as $comment) { ++$i; $class = ''; @@ -92,9 +102,16 @@ if ('view' == $mode) { ?> |