WordPress.org

Make WordPress Core

Changeset 13694


Ignore:
Timestamp:
03/13/2010 06:47:44 PM (12 years ago)
Author:
ryan
Message:

Spacing between attributes. Props momo360modena. see #11817

File:
1 edited

Legend:

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

    r13685 r13694  
    115115        // Setup the $menu_item variables
    116116        $menu_item = wp_setup_nav_menu_item( $menu_item );
    117        
     117
    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 .'"' : '';
    120        
     119        $classes = 'frontend' == $args->type ? ' class="menu-item-'. $menu_item->type . $menu_item->li_class .'"' : '';
     120
    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 );
     
    139139            $nav_menu .= '</li>';
    140140        }
    141        
     141
    142142    endforeach;
    143143   
Note: See TracChangeset for help on using the changeset viewer.