Spacing between attributes. Props momo360modena. see #11817

git-svn-id: https://develop.svn.wordpress.org/trunk@13694 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-03-13 18:47:44 +00:00
parent 6e43a2610d
commit d59218dbce
1 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ function wp_get_nav_menu( $args = array() ) {
$menu_item = wp_setup_nav_menu_item( $menu_item ); $menu_item = wp_setup_nav_menu_item( $menu_item );
$maybe_value = 'frontend' == $args->type ? '' : ' value="'. $menu_item->ID .'"'; $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 .= '<li id="menu-item-'. $menu_item->ID .'"'. $maybe_value . $classes .'>';
$nav_menu .= wp_get_nav_menu_item( $menu_item, $args->type, $args ); $nav_menu .= wp_get_nav_menu_item( $menu_item, $args->type, $args );