Make WordPress Core

Changeset 7098


Ignore:
Timestamp:
02/28/2008 10:12:04 PM (17 years ago)
Author:
ryan
Message:

Fade approved comments from moderated list. Props mdawaffe. fixes #6032

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r7082 r7098  
    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();
  • trunk/wp-admin/edit-comments.php

    r7083 r7098  
    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>
     
    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>
  • trunk/wp-admin/edit-pages.php

    r7082 r7098  
    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>
  • trunk/wp-admin/edit.php

    r7082 r7098  
    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>
  • trunk/wp-admin/includes/template.php

    r7089 r7098  
    593593}
    594594
    595 function _wp_comment_row( $comment_id, $mode, $checkbox = true ) {
     595function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true ) {
    596596    global $comment, $post;
    597597    $comment = get_comment( $comment_id );
Note: See TracChangeset for help on using the changeset viewer.