Make WordPress Core

Changeset 11231


Ignore:
Timestamp:
05/07/2009 07:38:14 AM (16 years ago)
Author:
westi
Message:

Revert the rememeber last view for comments page code as it is confusing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r11204 r11231  
    8686$mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
    8787
    88 $default_status = get_user_option('edit_comments_last_view');
    89 if ( empty($default_status) )
    90     $default_status = 'all';
    91 $comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : $default_status;
     88$comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all';
    9289if ( !in_array($comment_status, array('all', 'moderated', 'approved', 'spam')) )
    9390    $comment_status = 'all';
    94 if ( $comment_status != $default_status )
    95     update_usermeta($current_user->ID, 'edit_comments_last_view', $comment_status);
    9691
    9792$comment_type = !empty($_GET['comment_type']) ? esc_attr($_GET['comment_type']) : '';
Note: See TracChangeset for help on using the changeset viewer.