Ticket #13220: highlight_home_link.diff
File highlight_home_link.diff, 618 bytes (added by , 14 years ago) |
---|
-
wp-includes/nav-menu-template.php
75 75 if ( 'custom' != $item->object ) 76 76 $classes[] = 'menu-item-object-'. $item->object; 77 77 78 if ( $item->object_id == $wp_query->get_queried_object_id() )78 if ( $item->object_id == $wp_query->get_queried_object_id() || ( 'custom' == $item->object && is_front_page() && !is_paged() ) ) 79 79 $classes[] = 'current-menu-item'; 80 80 81 81 // @todo add classes for parent/child relationships