Make WordPress Core


Ignore:
Timestamp:
02/28/2008 06:50:25 AM (17 years ago)
Author:
ryan
Message:

Unify comment display. Props mdawaffe. fixes #6025

File:
1 edited

Legend:

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

    r6983 r7082  
    355355    $search = isset($_POST['s']) ? $_POST['s'] : false;
    356356    $start = isset($_POST['page']) ? intval($_POST['page']) * 25 - 1: 24;
    357 
    358     list($comments, $total) = _wp_get_comment_list( $search, $start, 1 );
     357    $status = isset($_POST['comment_status']) ? $_POST['comment_status'] : false;
     358    $mode = isset($_POST['mode']) ? $_POST['mode'] : 'detail';
     359
     360    list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 );
    359361
    360362    if ( !$comments )
     
    364366        get_comment( $comment );
    365367        ob_start();
    366             _wp_comment_list_item( $comment->comment_ID );
     368            _wp_comment_row( $comment->comment_ID, $mode );
    367369            $comment_list_item = ob_get_contents();
    368370        ob_end_clean();
Note: See TracChangeset for help on using the changeset viewer.