WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/21/2010 02:03:25 PM (11 years ago)
Author:
scribu
Message:

Allow filtering comments by user_id via URL. Props neoxx. Fixes #14163

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15882 r15887  
    20942094        $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
    20952095
     2096        $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
     2097
    20962098        $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );
    20972099        $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
     
    21142116            'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
    21152117            'search' => $search,
     2118            'user_id' => $user_id,
    21162119            'offset' => $start,
    21172120            'number' => $number,
Note: See TracChangeset for help on using the changeset viewer.