]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-comments-list-table.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-comments-list-table.php
index 23f3169d04a47d5916703220f9d44d04b6952536..345bda2f5b2e84c840fe8821988c4e4ddc57723a 100644 (file)
@@ -52,6 +52,8 @@ class WP_Comments_List_Table extends WP_List_Table {
 
                $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
 
+               $post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : '';
+
                $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
 
                $orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
@@ -96,6 +98,7 @@ class WP_Comments_List_Table extends WP_List_Table {
                        'type' => $comment_type,
                        'orderby' => $orderby,
                        'order' => $order,
+                       'post_type' => $post_type,
                );
 
                $_comments = get_comments( $args );