From c4b24f1bf6b1ae57be37aa09eb969ea8738454a6 Mon Sep 17 00:00:00 2001
From: Matt Mullenweg
Date: Tue, 5 Oct 2004 07:25:21 +0000
Subject: [PATCH] Page comments
git-svn-id: https://develop.svn.wordpress.org/trunk@1745 602fd350-edb4-49c9-b593-d223f7449a82
---
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 f1ec72d05c..6b4ff464d3 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) { ?> |