Merge pull request #1060 from IanDelMar/aria-current

Add aria-current
This commit is contained in:
UnderstrapFramework 2019-12-13 11:12:51 +00:00 committed by GitHub
commit 87360068c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) {
}
}
$atts['aria-current'] = $item->current ? 'page' : '';
// update atts of this item based on any custom linkmod classes.
$atts = self::update_atts_for_linkmod_type( $atts, $linkmod_classes );
// Allow filtering of the $atts array before using it.