diff --git a/src/wp-admin/includes/class-wp-ms-users-list-table.php b/src/wp-admin/includes/class-wp-ms-users-list-table.php
index d219efc38e..0d57562720 100644
a
|
b
|
class WP_MS_Users_List_Table extends WP_List_Table { |
29 | 29 | * @global string $usersearch |
30 | 30 | * @global string $role |
31 | 31 | * @global wpdb $wpdb |
32 | | * @global string $mode |
33 | 32 | */ |
34 | 33 | public function prepare_items() { |
35 | | global $usersearch, $role, $wpdb, $mode; |
| 34 | global $usersearch, $role, $wpdb; |
36 | 35 | |
37 | 36 | $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : ''; |
38 | 37 | |
… |
… |
class WP_MS_Users_List_Table extends WP_List_Table { |
81 | 80 | if ( isset( $_REQUEST['order'] ) ) |
82 | 81 | $args['order'] = $_REQUEST['order']; |
83 | 82 | |
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 | | } |
90 | | |
91 | 83 | /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */ |
92 | 84 | $args = apply_filters( 'users_list_table_query_args', $args ); |
93 | 85 | |
… |
… |
class WP_MS_Users_List_Table extends WP_List_Table { |
145 | 137 | } |
146 | 138 | |
147 | 139 | /** |
148 | | * @global string $mode |
149 | | * @param string $which |
150 | | */ |
151 | | protected function pagination( $which ) { |
152 | | global $mode; |
153 | | |
154 | | parent::pagination ( $which ); |
155 | | |
156 | | if ( 'top' === $which ) { |
157 | | $this->view_switcher( $mode ); |
158 | | } |
159 | | } |
160 | | |
161 | | /** |
162 | 140 | * |
163 | 141 | * @return array |
164 | 142 | */ |
… |
… |
class WP_MS_Users_List_Table extends WP_List_Table { |
278 | 256 | * @since 4.3.0 |
279 | 257 | * @access public |
280 | 258 | * |
281 | | * @global string $mode |
282 | | * |
283 | 259 | * @param WP_User $user The current WP_User object. |
284 | 260 | */ |
285 | 261 | public function column_registered( $user ) { |
286 | | global $mode; |
287 | | if ( 'list' === $mode ) { |
288 | | $date = __( 'Y/m/d' ); |
289 | | } else { |
290 | 262 | $date = __( 'Y/m/d g:i:s a' ); |
291 | | } |
292 | 263 | echo mysql2date( $date, $user->user_registered ); |
293 | 264 | } |
294 | 265 | |