Changeset 48398 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 07/07/2020 07:10:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r48352 r48398 167 167 if ( empty( $this->modes ) ) { 168 168 $this->modes = array( 169 'list' => __( 'List View' ),170 'ex cerpt' => __( 'ExcerptView' ),169 'list' => __( 'Compact View' ), 170 'extended' => __( 'Extended View' ), 171 171 ); 172 172 } … … 522 522 if ( ! $action_count ) { 523 523 return ''; 524 } 525 526 $mode = get_user_setting( 'posts_list_mode', 'list' ); 527 if ( 'extended' === $mode ) { 528 $always_visible = true; 524 529 } 525 530 … … 1248 1253 */ 1249 1254 protected function get_table_classes() { 1250 return array( 'widefat', 'fixed', 'striped', $this->_args['plural'] ); 1255 $mode = get_user_setting( 'posts_list_mode', 'list' ); 1256 $mode_class = 'extended' === $mode ? 'table-view-extended' : 'table-view-list'; 1257 $mode = get_user_setting( 'posts_list_mode', 'list' ); 1258 /** 1259 * Filters the current view mode. 1260 * 1261 * @since 5.5.0 1262 * 1263 * @param string $mode The current selected mode. Default value of 1264 * posts_list_mode user setting. 1265 */ 1266 $mode = apply_filters( 'table_view_mode', $mode ); 1267 1268 $mode_class = 'extended' === $mode ? 'table-view-extended' : 'table-view-' . $mode; 1269 1270 return array( 'widefat', 'fixed', 'striped', $mode_class, $this->_args['plural'] ); 1251 1271 } 1252 1272
Note: See TracChangeset
for help on using the changeset viewer.