Make WordPress Core

Ticket #18596: 18596.patch

File 18596.patch, 775 bytes (added by johnbillion, 15 years ago)
  • wp-admin/includes/class-wp-comments-list-table.php

     
    5151
    5252                $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
    5353
     54                $post_type = ( isset( $_REQUEST['post_type'] ) ) ? $_REQUEST['post_type'] : '';
     55
    5456                $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
    5557
    5658                $orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
    … …  
    9496                        'type' => $comment_type,
    9597                        'orderby' => $orderby,
    9698                        'order' => $order,
     99                        'post_type' => $post_type
    97100                );
    98101
    99102                $_comments = get_comments( $args );