Changeset 35382 for trunk/src/wp-includes/nav-menu-template.php
- Timestamp:
- 10/24/2015 05:45:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu-template.php
r34666 r35382 579 579 $active_object = $menu_item->object; 580 580 581 // if the menu item corresponds to the currently-queried post type archive 582 } elseif ( 583 'post_type_archive' == $menu_item->type && 584 is_post_type_archive( array( $menu_item->object ) ) 585 ) { 586 $classes[] = 'current-menu-item'; 587 $menu_items[$key]->current = true; 581 588 // if the menu item corresponds to the currently-requested URL 582 589 } elseif ( 'custom' == $menu_item->object && isset( $_SERVER['HTTP_HOST'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.