From 97b59fbeda4eec429f1a60d77bb79401705921de Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 28 Feb 2008 22:12:04 +0000 Subject: [PATCH] Fade approved comments from moderated list. Props mdawaffe. fixes #6032 git-svn-id: https://develop.svn.wordpress.org/trunk@7098 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-ajax.php | 2 +- wp-admin/edit-comments.php | 4 ++-- wp-admin/edit-pages.php | 2 +- wp-admin/edit.php | 2 +- wp-admin/includes/template.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index a4272ef8ae..93814fbcba 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -365,7 +365,7 @@ case 'add-comment' : foreach ( (array) $comments as $comment ) { get_comment( $comment ); ob_start(); - _wp_comment_row( $comment->comment_ID, $mode ); + _wp_comment_row( $comment->comment_ID, $mode, false ); $comment_list_item = ob_get_contents(); ob_end_clean(); $x->add( array( diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index f3a894d90c..0961588aee 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -191,13 +191,13 @@ if ($comments) { comment_ID, $mode ); + _wp_comment_row( $comment->comment_ID, $mode, $comment_status ); ?> comment_ID, $mode ); + _wp_comment_row( $comment->comment_ID, $mode, $comment_status ); ?> diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 6784f370dc..d25ba13ec8 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -188,7 +188,7 @@ if ( 1 == count($posts) && isset( $_GET['page_id'] ) ) : comment_ID, 'detail', false ); + _wp_comment_row( $comment->comment_ID, 'detail', false, false ); ?> diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 8e61e1431c..b14caee781 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -212,7 +212,7 @@ if ( 1 == count($posts) && isset( $_GET['p'] ) ) : comment_ID, 'detail', false ); + _wp_comment_row( $comment->comment_ID, 'detail', false, false ); ?> diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 1c2d22bf3e..060e5129dc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -592,7 +592,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) { return array($comments, $total); } -function _wp_comment_row( $comment_id, $mode, $checkbox = true ) { +function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true ) { global $comment, $post; $comment = get_comment( $comment_id ); $post = get_post($comment->comment_post_ID);