Make WordPress Core


Ignore:
Timestamp:
02/17/2016 09:59:51 PM (9 years ago)
Author:
jeremyfelt
Message:

Multisite: Make view mode sticky for network users and sites list tables.

Fixes #34365.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r36416 r36562  
    8282            $args['order'] = $_REQUEST['order'];
    8383
    84         $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode'];
     84        if ( ! empty( $_REQUEST['mode'] ) ) {
     85            $mode = $_REQUEST['mode'] === 'excerpt' ? 'excerpt' : 'list';
     86            set_user_setting ( 'network_users_list_mode', $mode );
     87        } else {
     88            $mode = get_user_setting ( 'network_users_list_mode', 'list' );
     89        }
    8590
    8691        /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
Note: See TracChangeset for help on using the changeset viewer.