Spacing between attributes. Props momo360modena. see #11817

git-svn-id: http://svn.automattic.com/wordpress/trunk@13694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-03-13 18:47:44 +00:00
parent 2209054062
commit f3707c7791
1 changed files with 4 additions and 4 deletions

View File

@ -114,10 +114,10 @@ function wp_get_nav_menu( $args = array() ) {
foreach ( $menu_items as $key => $menu_item ) :
// Setup the $menu_item variables
$menu_item = wp_setup_nav_menu_item( $menu_item );
$maybe_value = 'frontend' == $args->type ? '' : ' value="'. $menu_item->ID .'"';
$classes = 'frontend' == $args->type ? 'class="menu-item-'. $menu_item->type . $menu_item->li_class .'"' : '';
$classes = 'frontend' == $args->type ? ' class="menu-item-'. $menu_item->type . $menu_item->li_class .'"' : '';
$nav_menu .= '<li id="menu-item-'. $menu_item->ID .'"'. $maybe_value . $classes .'>';
$nav_menu .= wp_get_nav_menu_item( $menu_item, $args->type, $args );
@ -138,7 +138,7 @@ function wp_get_nav_menu( $args = array() ) {
} else {
$nav_menu .= '</li>';
}
endforeach;
$nav_menu .= '</ul>';