WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 2 months ago

#43522 new enhancement

Add aria-current to output of Walker_Page

Reported by: chetan200891 Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Themes Keywords: has-patch
Focuses: accessibility Cc:

Description

From the reference of ticket #43191, Also need to add area-current to output of Walker_Page.

I think below modifications can help.

if ( $page->ID == $current_page ) {
        $atts['aria-current'] = 'page';
}

Attachments (1)

43522.diff (503 bytes) - added by wpzinc 3 months ago.

Download all attachments as: .zip

Change History (5)

This ticket was mentioned in Slack in #accessibility by chetan200891. View the logs.


3 months ago

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


3 months ago

#3 @afercia
3 months ago

  • Component changed from General to Themes
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 5.0
  • Version trunk deleted

@wpzinc
3 months ago

#4 @lonelyvegan
2 months ago

  • Keywords has-patch added; needs-patch removed

Looks like this has a patch, so updating the keywords.

Note: See TracTickets for help on using tickets.