Make WordPress Core


Ignore:
Timestamp:
12/07/2008 07:31:27 AM (17 years ago)
Author:
markjaquith
Message:

Make AJAX comment river post_id and comment_type aware

File:
1 edited

Legend:

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

    r10055 r10104  
    454454    $status = isset($_POST['comment_status']) ? $_POST['comment_status'] : false;
    455455    $mode = isset($_POST['mode']) ? $_POST['mode'] : 'detail';
    456 
    457     list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 );
     456    $p = isset($_POST['p']) ? $_POST['p'] : 0;
     457    $comment_type = isset($_POST['comment_type']) ? $_POST['comment_type'] : '';
     458    list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1, $p, $comment_type );
    458459
    459460    if ( get_option('show_avatars') )
Note: See TracChangeset for help on using the changeset viewer.