| 1 | Index: wp-includes/nav-menu-template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/nav-menu-template.php (revision 15303) |
|---|
| 4 | +++ wp-includes/nav-menu-template.php (working copy) |
|---|
| 5 | @@ -311,6 +311,7 @@ |
|---|
| 6 | $classes = (array) $menu_item->classes; |
|---|
| 7 | $classes[] = 'menu-item'; |
|---|
| 8 | $classes[] = 'menu-item-type-' . $menu_item->type; |
|---|
| 9 | + $classes[] = 'menu-item-object-' . $menu_item->object; |
|---|
| 10 | |
|---|
| 11 | // if the menu item corresponds to a taxonomy term for the currently-queried non-hierarchical post object |
|---|
| 12 | if ( $wp_query->is_singular && 'taxonomy' == $menu_item->type && in_array( $menu_item->object_id, $possible_object_parents ) ) { |
|---|