WordPress.org

Make WordPress Core

Changeset 16912


Ignore:
Timestamp:
12/14/2010 01:25:07 PM (7 years ago)
Author:
nacin
Message:

Pass args to nav_menu_css_class filter. props scribu, fixes #15808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu-template.php

    r16742 r16912  
    7474        $classes[] = 'menu-item-' . $item->ID;
    7575
    76         $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
     76        $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
    7777        $class_names = ' class="' . esc_attr( $class_names ) . '"';
    7878
Note: See TracChangeset for help on using the changeset viewer.