Skip to content

Commit 18c44b3

Browse files
committed
Merge branch 'IanDelMar-patch-1'
2 parents 92a0bcd + 8515a9f commit 18c44b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

class-wp-bootstrap-navwalker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0
196196
}
197197
}
198198

199+
$atts['aria-current'] = $item->current ? 'page' : '';
200+
199201
// update atts of this item based on any custom linkmod classes.
200202
$atts = self::update_atts_for_linkmod_type( $atts, $linkmod_classes );
201203
// Allow filtering of the $atts array before using it.

0 commit comments

Comments
 (0)