Skip to content

Commit 97b59fb

Browse files
committed
Fade approved comments from moderated list. Props mdawaffe. fixes WordPress#6032
git-svn-id: https://develop.svn.wordpress.org/trunk@7098 602fd350-edb4-49c9-b593-d223f7449a82
1 parent de7b856 commit 97b59fb

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

wp-admin/admin-ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@
365365
foreach ( (array) $comments as $comment ) {
366366
get_comment( $comment );
367367
ob_start();
368-
_wp_comment_row( $comment->comment_ID, $mode );
368+
_wp_comment_row( $comment->comment_ID, $mode, false );
369369
$comment_list_item = ob_get_contents();
370370
ob_end_clean();
371371
$x->add( array(

wp-admin/edit-comments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@
191191
<tbody id="the-comment-list" class="list:comment">
192192
<?php
193193
foreach ($comments as $comment)
194-
_wp_comment_row( $comment->comment_ID, $mode );
194+
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
195195
?>
196196
</tbody>
197197
<tbody id="the-extra-comment-list" class="list:comment" style="display: none;">
198198
<?php
199199
foreach ($extra_comments as $comment)
200-
_wp_comment_row( $comment->comment_ID, $mode );
200+
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
201201
?>
202202
</tbody>
203203
</table>

wp-admin/edit-pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<tbody id="the-comment-list" class="list:comment">
189189
<?php
190190
foreach ($comments as $comment)
191-
_wp_comment_row( $comment->comment_ID, 'detail', false );
191+
_wp_comment_row( $comment->comment_ID, 'detail', false, false );
192192
?>
193193
</tbody>
194194
</table>

wp-admin/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<tbody id="the-comment-list" class="list:comment">
213213
<?php
214214
foreach ($comments as $comment)
215-
_wp_comment_row( $comment->comment_ID, 'detail', false );
215+
_wp_comment_row( $comment->comment_ID, 'detail', false, false );
216216
?>
217217
</tbody>
218218
</table>

wp-admin/includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) {
592592
return array($comments, $total);
593593
}
594594

595-
function _wp_comment_row( $comment_id, $mode, $checkbox = true ) {
595+
function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true ) {
596596
global $comment, $post;
597597
$comment = get_comment( $comment_id );
598598
$post = get_post($comment->comment_post_ID);

0 commit comments

Comments
 (0)