Changeset 11231
- Timestamp:
- 05/07/2009 07:38:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r11204 r11231 86 86 $mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']); 87 87 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'; 92 89 if ( !in_array($comment_status, array('all', 'moderated', 'approved', 'spam')) ) 93 90 $comment_status = 'all'; 94 if ( $comment_status != $default_status )95 update_usermeta($current_user->ID, 'edit_comments_last_view', $comment_status);96 91 97 92 $comment_type = !empty($_GET['comment_type']) ? esc_attr($_GET['comment_type']) : '';
Note: See TracChangeset
for help on using the changeset viewer.