Changeset 16742
- Timestamp:
- 12/06/2010 03:54:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/nav-menu-template.php
r16731 r16742 312 312 $possible_object_parents = array_filter( $possible_object_parents ); 313 313 314 $front_page_url = home_url(); 315 314 316 foreach ( (array) $menu_items as $key => $menu_item ) { 315 317 … … 382 384 $active_parent_object_ids[] = (int) $menu_item->post_parent; 383 385 $active_object = $menu_item->object; 386 387 // give front page item current-menu-item class when extra query arguments involved 388 } elseif ( $item_url == $front_page_url && is_front_page() ) { 389 $classes[] = 'current-menu-item'; 384 390 } 385 391
Note: See TracChangeset
for help on using the changeset viewer.