Changeset 46746 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 11/18/2019 04:49:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r46739 r46746 632 632 <?php 633 633 foreach ( $this->modes as $mode => $title ) { 634 $classes = array( 'view-' . $mode ); 634 $classes = array( 'view-' . $mode ); 635 $aria_current = ''; 636 635 637 if ( $current_mode === $mode ) { 636 $classes[] = 'current'; 638 $classes[] = 'current'; 639 $aria_current = ' aria-current="page"'; 637 640 } 638 641 printf( 639 "<a href='%s' class='%s' id='view-switch-$mode' ><span class='screen-reader-text'>%s</span></a>\n",642 "<a href='%s' class='%s' id='view-switch-$mode'$aria_current><span class='screen-reader-text'>%s</span></a>\n", 640 643 esc_url( add_query_arg( 'mode', $mode ) ), 641 644 implode( ' ', $classes ),
Note: See TracChangeset
for help on using the changeset viewer.