From ac3b7393025c90030243b539fde5c3de12937a13 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 7 May 2009 07:38:14 +0000 Subject: [PATCH] Revert the rememeber last view for comments page code as it is confusing. git-svn-id: http://svn.automattic.com/wordpress/trunk@11231 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 5d69c9577d..3d6a5b61dd 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -85,14 +85,9 @@ require_once('admin-header.php'); $mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']); -$default_status = get_user_option('edit_comments_last_view'); -if ( empty($default_status) ) - $default_status = 'all'; -$comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : $default_status; +$comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all'; if ( !in_array($comment_status, array('all', 'moderated', 'approved', 'spam')) ) $comment_status = 'all'; -if ( $comment_status != $default_status ) - update_usermeta($current_user->ID, 'edit_comments_last_view', $comment_status); $comment_type = !empty($_GET['comment_type']) ? esc_attr($_GET['comment_type']) : '';