WordPress.org

Make WordPress Core

Changeset 15303


Ignore:
Timestamp:
06/22/10 22:06:08 (4 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r15259 r15303  
    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.