WordPress.org

Make WordPress Core

Ticket #11817: menu.diff

File menu.diff, 778 bytes (added by momo360modena, 12 years ago)

Fix HTML

  • wp-includes/nav-menu-template.php

     
    116116                $menu_item = wp_setup_nav_menu_item( $menu_item );
    117117               
    118118                $maybe_value = 'frontend' == $args->type ? '' : ' value="'. $menu_item->ID .'"';
    119                 $classes = 'frontend' == $args->type ? 'class="menu-item-'. $menu_item->type . $menu_item->li_class .'"' : '';
     119                $classes = 'frontend' == $args->type ? ' class="menu-item-'. $menu_item->type . $menu_item->li_class .'"' : '';
    120120               
    121121                $nav_menu .= '<li id="menu-item-'. $menu_item->ID .'"'. $maybe_value . $classes .'>';
    122122                $nav_menu .= wp_get_nav_menu_item( $menu_item, $args->type, $args );