Ticket #30325: 30325.diff
File 30325.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-list-table.php
577 577 * @param string $current_mode 578 578 */ 579 579 protected function view_switcher( $current_mode ) { 580 /** 581 * Filter the list of available list table view switcher modes. 582 * 583 * @since 4.2.0 584 * 585 * @param array $views An array of available views modes. 586 * @param string $screen Screen ID for the current screen. 587 */ 588 $modes = apply_filters( 'view_switcher_modes', $this->modes, $this->screen->id ); 589 590 if ( empty( $modes ) ) { 591 return; 592 } 593 580 594 ?> 581 595 <input type="hidden" name="mode" value="<?php echo esc_attr( $current_mode ); ?>" /> 582 596 <div class="view-switch"> 583 597 <?php 584 foreach ( $ this->modes as $mode => $title ) {598 foreach ( $modes as $mode => $title ) { 585 599 $classes = array( 'view-' . $mode ); 586 600 if ( $current_mode == $mode ) 587 601 $classes[] = 'current';