Error suppression is lame!
git-svn-id: http://svn.automattic.com/wordpress/trunk@16565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e3fd53b7a
commit
dc79a67932
|
@ -60,6 +60,9 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||
|
||||
$user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
|
||||
|
||||
$orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
|
||||
$order = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : '';
|
||||
|
||||
$comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );
|
||||
$comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
|
||||
|
||||
|
@ -76,7 +79,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||
'moderated' => 'hold',
|
||||
'approved' => 'approve'
|
||||
);
|
||||
|
||||
|
||||
$args = array(
|
||||
'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
|
||||
'search' => $search,
|
||||
|
@ -85,8 +88,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||
'number' => $number,
|
||||
'post_id' => $post_id,
|
||||
'type' => $comment_type,
|
||||
'orderby' => @$_REQUEST['orderby'],
|
||||
'order' => @$_REQUEST['order'],
|
||||
'orderby' => $orderby,
|
||||
'order' => $order,
|
||||
);
|
||||
|
||||
$_comments = get_comments( $args );
|
||||
|
|
Loading…
Reference in New Issue