Ticket #12668: 12668-comments-list-table.patch
File 12668-comments-list-table.patch, 921 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-comments-list-table.php
58 58 if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) ) 59 59 $comment_status = 'all'; 60 60 61 $comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';61 $comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : array( 'pingback', 'trackback', 'comment' ); 62 62 63 63 $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : ''; 64 64 … … 108 108 'type' => $comment_type, 109 109 'orderby' => $orderby, 110 110 'order' => $order, 111 'post_type' => $post_type ,111 'post_type' => $post_type 112 112 ); 113 113 114 114 $_comments = get_comments( $args );