diff --git a/src/wp-includes/class-walker-nav-menu.php b/src/wp-includes/class-walker-nav-menu.php
index 5e2335a512..eb452e3db6 100644
a
|
b
|
class Walker_Nav_Menu extends Walker { |
169 | 169 | |
170 | 170 | $output .= $indent . '<li' . $id . $class_names . '>'; |
171 | 171 | |
172 | | $atts = array(); |
173 | | $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; |
174 | | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
175 | | $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; |
176 | | $atts['href'] = ! empty( $item->url ) ? $item->url : ''; |
| 172 | $atts = array(); |
| 173 | $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; |
| 174 | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
| 175 | $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; |
| 176 | $atts['href'] = ! empty( $item->url ) ? $item->url : ''; |
| 177 | $atts['aria-current'] = $item->current ? 'page' : ''; |
177 | 178 | |
178 | 179 | /** |
179 | 180 | * Filters the HTML attributes applied to a menu item's anchor element. |
… |
… |
class Walker_Nav_Menu extends Walker { |
184 | 185 | * @param array $atts { |
185 | 186 | * The HTML attributes applied to the menu item's `<a>` element, empty strings are ignored. |
186 | 187 | * |
187 | | * @type string $title Title attribute. |
188 | | * @type string $target Target attribute. |
189 | | * @type string $rel The rel attribute. |
190 | | * @type string $href The href attribute. |
| 188 | * @type string $title Title attribute. |
| 189 | * @type string $target Target attribute. |
| 190 | * @type string $rel The rel attribute. |
| 191 | * @type string $href The href attribute. |
| 192 | * @type string $aria_current The aria-current attribute. |
191 | 193 | * } |
192 | 194 | * @param WP_Post $item The current menu item. |
193 | 195 | * @param stdClass $args An object of wp_nav_menu() arguments. |