Make WordPress Core

Changeset 50823


Ignore:
Timestamp:
05/07/2021 09:45:40 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-nav-menu.php

    r49215 r50823  
    194194         *     @type string $rel          The rel attribute.
    195195         *     @type string $href         The href attribute.
    196          *     @type string $aria_current The aria-current attribute.
     196         *     @type string $aria-current The aria-current attribute.
    197197         * }
    198198         * @param WP_Post  $item  The current menu item.
  • trunk/src/wp-includes/class-walker-page.php

    r47808 r50823  
    174174         *
    175175         *     @type string $href         The href attribute.
    176          *     @type string $aria_current The aria-current attribute.
     176         *     @type string $aria-current The aria-current attribute.
    177177         * }
    178178         * @param WP_Post $page         Page data object.
Note: See TracChangeset for help on using the changeset viewer.