From 524f2b1f230fa6aafeaf3164544a498e8ae3263e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 7 May 2021 09:45:40 +0000 Subject: [PATCH] Docs: Correct the `aria-current` array key in the documentation for two widget filters. This applies to `nav_menu_link_attributes` and `page_menu_link_attributes` filters. Follow-up to [42808], [44416]. Props jnylen0, chetan200891, alexstine. See #43522, #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@50823 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-walker-nav-menu.php | 2 +- src/wp-includes/class-walker-page.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-walker-nav-menu.php b/src/wp-includes/class-walker-nav-menu.php index 1b7b4060a8..ecbb8d9642 100644 --- a/src/wp-includes/class-walker-nav-menu.php +++ b/src/wp-includes/class-walker-nav-menu.php @@ -193,7 +193,7 @@ class Walker_Nav_Menu extends Walker { * @type string $target Target attribute. * @type string $rel The rel attribute. * @type string $href The href attribute. - * @type string $aria_current The aria-current attribute. + * @type string $aria-current The aria-current attribute. * } * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. diff --git a/src/wp-includes/class-walker-page.php b/src/wp-includes/class-walker-page.php index 9589996721..5c2684929d 100644 --- a/src/wp-includes/class-walker-page.php +++ b/src/wp-includes/class-walker-page.php @@ -173,7 +173,7 @@ class Walker_Page extends Walker { * The HTML attributes applied to the menu item's `` element, empty strings are ignored. * * @type string $href The href attribute. - * @type string $aria_current The aria-current attribute. + * @type string $aria-current The aria-current attribute. * } * @param WP_Post $page Page data object. * @param int $depth Depth of page, used for padding.