Changeset 45300 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 05/09/2019 08:57:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r45084 r45300 1119 1119 $classes = array( 'nav-tab' ); 1120 1120 1121 // Aria-current attribute. 1122 $aria_current = ''; 1123 1121 1124 // Selected is set by the parent OR assumed by the $pagenow global 1122 1125 if ( $r['selected'] === $link_id || $link['url'] === $GLOBALS['pagenow'] ) { 1123 $classes[] = 'nav-tab-active'; 1126 $classes[] = 'nav-tab-active'; 1127 $aria_current = ' aria-current="page"'; 1124 1128 } 1125 1129 … … 1131 1135 1132 1136 // Add link to nav links 1133 $screen_links[ $link_id ] = '<a href="' . esc_url( $url ) . '" id="' . esc_attr( $link_id ) . '" class="' . $esc_classes . '" >' . esc_html( $link['label'] ) . '</a>';1137 $screen_links[ $link_id ] = '<a href="' . esc_url( $url ) . '" id="' . esc_attr( $link_id ) . '" class="' . $esc_classes . '"' . $aria_current . '>' . esc_html( $link['label'] ) . '</a>'; 1134 1138 } 1135 1139
Note: See TracChangeset
for help on using the changeset viewer.