diff --git src/wp-admin/includes/class-wp-list-table.php src/wp-admin/includes/class-wp-list-table.php
index b698d58..6dcecfc 100644
|
|
class WP_List_Table { |
537 | 537 | * @access protected |
538 | 538 | */ |
539 | 539 | protected function view_switcher( $current_mode ) { |
| 540 | /** |
| 541 | * Filter the list of available view modes. |
| 542 | * |
| 543 | * The dynamic portion of the hook name, $this->screen->id, refers |
| 544 | * to the ID of the current screen, usually a string. |
| 545 | * |
| 546 | * @since 4.1.0 |
| 547 | * |
| 548 | * @param array $views An array of available views modes. |
| 549 | */ |
| 550 | $modes = apply_filters( "view_modes_{$this->screen->id}", $this->modes ); |
| 551 | |
| 552 | if ( empty( $modes ) ) |
| 553 | return; |
| 554 | |
540 | 555 | ?> |
541 | 556 | <input type="hidden" name="mode" value="<?php echo esc_attr( $current_mode ); ?>" /> |
542 | 557 | <div class="view-switch"> |
543 | 558 | <?php |
544 | | foreach ( $this->modes as $mode => $title ) { |
| 559 | foreach ( $modes as $mode => $title ) { |
545 | 560 | $classes = array( 'view-' . $mode ); |
546 | 561 | if ( $current_mode == $mode ) |
547 | 562 | $classes[] = 'current'; |