From 82f5b2b5f38489ad157ca5b7838af0dfc050f380 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 7 Dec 2008 07:31:27 +0000 Subject: [PATCH] Make AJAX comment river post_id and comment_type aware git-svn-id: https://develop.svn.wordpress.org/trunk@10104 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-ajax.php | 5 +++-- wp-admin/edit-comments.php | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 235a248682..e38daa1cd0 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -453,8 +453,9 @@ case 'add-comment' : $start = isset($_POST['page']) ? intval($_POST['page']) * 25 - 1: 24; $status = isset($_POST['comment_status']) ? $_POST['comment_status'] : false; $mode = isset($_POST['mode']) ? $_POST['mode'] : 'detail'; - - list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 ); + $p = isset($_POST['p']) ? $_POST['p'] : 0; + $comment_type = isset($_POST['comment_type']) ? $_POST['comment_type'] : ''; + list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1, $p, $comment_type ); if ( get_option('show_avatars') ) add_filter( 'comment_author', 'floated_admin_avatar' ); diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 50139a1bc1..4b5541a65d 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -350,6 +350,8 @@ if ( $page_links ) + +