Changeset 44416
- Timestamp:
- 01/07/2019 01:35:56 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-page.php
r44415 r44416 159 159 $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after']; 160 160 161 $atts = array(); 162 $atts['href'] = get_permalink( $page->ID ); 161 $atts = array(); 162 $atts['href'] = get_permalink( $page->ID ); 163 $atts['aria-current'] = ( $page->ID == $current_page ) ? 'page' : ''; 163 164 164 165 /** … … 170 171 * The HTML attributes applied to the menu item's `<a>` element, empty strings are ignored. 171 172 * 172 * @type string $href The href attribute. 173 * @type string $href The href attribute. 174 * @type string $aria_current The aria-current attribute. 173 175 * } 174 176 * @param WP_Post $page Page data object.
Note: See TracChangeset
for help on using the changeset viewer.