WordPress.org

Make WordPress Core

Ticket #18596: 18596.2.patch

File 18596.2.patch, 770 bytes (added by c3mdigital, 5 years ago)

Refresh or original patch

  • wp-admin/includes/class-wp-comments-list-table.php

     
    5252
    5353                $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
    5454
     55                $post_type = ( isset( $_REQUEST['post_type'] ) ) ? $_REQUEST['post_type'] : '';
     56
    5557                $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
    5658
    5759                $orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
     
    9698                        'type' => $comment_type,
    9799                        'orderby' => $orderby,
    98100                        'order' => $order,
     101                        'post_type' => $post_type,
    99102                );
    100103
    101104                $_comments = get_comments( $args );