Fade approved comments from moderated list. Props mdawaffe. fixes #6032
git-svn-id: http://svn.automattic.com/wordpress/trunk@7098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf15f62334
commit
76996fcd71
|
@ -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(
|
||||
|
|
|
@ -191,13 +191,13 @@ if ($comments) {
|
|||
<tbody id="the-comment-list" class="list:comment">
|
||||
<?php
|
||||
foreach ($comments as $comment)
|
||||
_wp_comment_row( $comment->comment_ID, $mode );
|
||||
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
|
||||
?>
|
||||
</tbody>
|
||||
<tbody id="the-extra-comment-list" class="list:comment" style="display: none;">
|
||||
<?php
|
||||
foreach ($extra_comments as $comment)
|
||||
_wp_comment_row( $comment->comment_ID, $mode );
|
||||
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -188,7 +188,7 @@ if ( 1 == count($posts) && isset( $_GET['page_id'] ) ) :
|
|||
<tbody id="the-comment-list" class="list:comment">
|
||||
<?php
|
||||
foreach ($comments as $comment)
|
||||
_wp_comment_row( $comment->comment_ID, 'detail', false );
|
||||
_wp_comment_row( $comment->comment_ID, 'detail', false, false );
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -212,7 +212,7 @@ if ( 1 == count($posts) && isset( $_GET['p'] ) ) :
|
|||
<tbody id="the-comment-list" class="list:comment">
|
||||
<?php
|
||||
foreach ($comments as $comment)
|
||||
_wp_comment_row( $comment->comment_ID, 'detail', false );
|
||||
_wp_comment_row( $comment->comment_ID, 'detail', false, false );
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue