WordPress.org

Make WordPress Core

Changeset 16565


Ignore:
Timestamp:
11/24/2010 11:19:23 AM (8 years ago)
Author:
westi
Message:

Error suppression is lame!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r16431 r16565  
    6161        $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
    6262
     63        $orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
     64        $order = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : '';
     65       
    6366        $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );
    6467        $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
     
    7780            'approved' => 'approve'
    7881        );
    79 
     82       
    8083        $args = array(
    8184            'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
     
    8689            'post_id' => $post_id,
    8790            'type' => $comment_type,
    88             'orderby' => @$_REQUEST['orderby'],
    89             'order' => @$_REQUEST['order'],
     91            'orderby' => $orderby,
     92            'order' => $order,
    9093        );
    9194
Note: See TracChangeset for help on using the changeset viewer.