Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40666, comment 2


Ignore:
Timestamp:
05/04/2017 03:17:50 PM (9 years ago)
Author:
pbiron
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40666, comment 2

    initial v1  
    1111my_category_menu_link_attributes( $atts, $category, $depth, $args, $id )
    1212{
    13         if ( $category->term_id == $id ||
     13        if ( $category->term_id === $id ||
    1414                        ( isset( $args['current_category'] ) &&
    15                         $category->term_id == $args['current_category'] ) ) {
     15                        $category->term_id === $args['current_category'] ) ) {
    1616                $atts['aria-current'] = 'page' ;
    1717                }