Make WordPress Core


Ignore:
Timestamp:
09/28/2008 05:48:55 PM (16 years ago)
Author:
ryan
Message:

Post ID filter for edit-comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r9018 r9023  
    6666$comment_status = isset($_GET['comment_status']) ? attribute_escape($_GET['comment_status']) : '';
    6767
     68$post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0;
     69
    6870$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
    6971$search = attribute_escape( $search_dirty ); ?>
     
    152154$start = $offset = ( $page - 1 ) * $comments_per_page;
    153155
    154 list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5 ); // Grab a few extra
     156list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id ); // Grab a few extra
    155157
    156158$comments = array_slice($_comments, 0, $comments_per_page);
Note: See TracChangeset for help on using the changeset viewer.