Make WordPress Core

Ticket #43522: 43522.diff

File 43522.diff, 503 bytes (added by wpzinc, 7 years ago)
  • src/wp-includes/class-walker-page.php

    diff --git a/src/wp-includes/class-walker-page.php b/src/wp-includes/class-walker-page.php
    index 838abe3..d767294 100644
    a b class Walker_Page extends Walker { 
    159159
    160160                $atts         = array();
    161161                $atts['href'] = get_permalink( $page->ID );
     162                $atts['aria-current'] = ( $page->ID == $current_page ) ? 'page' : '';
    162163
    163164                /**
    164165                 * Filters the HTML attributes applied to a page menu item's anchor element.