Error suppression is lame!

git-svn-id: http://svn.automattic.com/wordpress/trunk@16565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-11-24 11:19:23 +00:00
parent 5e3fd53b7a
commit dc79a67932
1 changed files with 6 additions and 3 deletions

View File

@ -60,6 +60,9 @@ class WP_Comments_List_Table extends WP_List_Table {
$user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : ''; $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 = $this->get_items_per_page( 'edit_comments_per_page' );
$comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
@ -85,8 +88,8 @@ class WP_Comments_List_Table extends WP_List_Table {
'number' => $number, 'number' => $number,
'post_id' => $post_id, 'post_id' => $post_id,
'type' => $comment_type, 'type' => $comment_type,
'orderby' => @$_REQUEST['orderby'], 'orderby' => $orderby,
'order' => @$_REQUEST['order'], 'order' => $order,
); );
$_comments = get_comments( $args ); $_comments = get_comments( $args );