WordPress.org

Make WordPress Core

Changeset 15302


Ignore:
Timestamp:
06/22/10 22:05:43 (5 years ago)
Author:
nacin
Message:

Assign menu-item-home also when menu item isn't current. props filosofo, see #14053 for trunk.

File:
1 edited

Legend:

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

    r15259 r15302  
    364364 
    365365                if ( untrailingslashit($current_url) == home_url() ) { 
    366                     $classes[] = 'menu-item-home'; 
    367366                    // Back compat for home limk to match wp_page_menu() 
    368367                    $classes[] = 'current_page_item'; 
     
    372371                $active_object = $menu_item->object; 
    373372            } 
     373             
     374            if ( untrailingslashit($item_url) == home_url() ) 
     375                $classes[] = 'menu-item-home'; 
    374376        } 
    375377 
Note: See TracChangeset for help on using the changeset viewer.