Make WordPress Core

Ticket #12668: 12668-comments-list-table.patch

File 12668-comments-list-table.patch, 921 bytes (added by mordauk, 10 years ago)
  • src/wp-admin/includes/class-wp-comments-list-table.php

     
    5858                if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) )
    5959                        $comment_status = 'all';
    6060
    61                 $comment_type = !empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';
     61                $comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : array( 'pingback', 'trackback', 'comment' );
    6262
    6363                $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
    6464
     
    108108                        'type' => $comment_type,
    109109                        'orderby' => $orderby,
    110110                        'order' => $order,
    111                         'post_type' => $post_type,
     111                        'post_type' => $post_type
    112112                );
    113113
    114114                $_comments = get_comments( $args );