Changeset 46777
- Timestamp:
- 11/25/2019 10:21:25 AM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-admin/includes/class-wp-list-table.php
r46341 r46777 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 ), -
branches/5.3/src/wp-includes/media-template.php
r46489 r46777 319 319 <span class="screen-reader-text"><?php _e( 'List View' ); ?></span> 320 320 </a> 321 <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-grid current" >321 <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-grid current" aria-current="page"> 322 322 <span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span> 323 323 </a>
Note: See TracChangeset
for help on using the changeset viewer.