[wp-trac] [WordPress Trac] #43522: Add aria-current to output of Walker_Page
WordPress Trac
noreply at wordpress.org
Sun Mar 11 16:26:49 UTC 2018
#43522: Add aria-current to output of Walker_Page
---------------------------+-----------------------------
Reporter: chetan200891 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
From the reference of ticket
[[https://core.trac.wordpress.org/ticket/43191#comment:10|#43191]], Also
need to add `area-current` to output of `Walker_Page`.
I think below modifications can help.
{{{#!php
if ( $page->ID == $current_page ) {
$atts['aria-current'] = 'page';
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43522>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list