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:
parent
2209054062
commit
f3707c7791
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue