Make WordPress Core

Changeset 25526


Ignore:
Timestamp:
09/20/2013 08:15:51 PM (11 years ago)
Author:
helen
Message:

Make it possible to filter comment screen by post type; no UI. props johnbillion, c3mdigital. fixes #18596.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r24505 r25526  
    5252
    5353        $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
     54
     55        $post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : '';
    5456
    5557        $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
     
    9799            'orderby' => $orderby,
    98100            'order' => $order,
     101            'post_type' => $post_type,
    99102        );
    100103
Note: See TracChangeset for help on using the changeset viewer.