Fix #464 - Show proper classes on additional wp_nav_menu()'s
This commit is contained in:
@@ -453,8 +453,7 @@ class Roots_Nav_Walker extends Walker_Nav_Menu {
|
|||||||
$indent = ($depth) ? str_repeat("\t", $depth) : '';
|
$indent = ($depth) ? str_repeat("\t", $depth) : '';
|
||||||
|
|
||||||
$slug = sanitize_title($item->title);
|
$slug = sanitize_title($item->title);
|
||||||
$id = apply_filters('nav_menu_item_id', 'menu-' . $slug, $item, $args);
|
$id = 'menu-' . $slug;
|
||||||
$id = strlen($id) ? '' . esc_attr( $id ) . '' : '';
|
|
||||||
|
|
||||||
$class_names = $value = '';
|
$class_names = $value = '';
|
||||||
$classes = empty($item->classes) ? array() : (array) $item->classes;
|
$classes = empty($item->classes) ? array() : (array) $item->classes;
|
||||||
@@ -505,9 +504,7 @@ class Roots_Navbar_Nav_Walker extends Walker_Nav_Menu {
|
|||||||
$indent = ($depth) ? str_repeat("\t", $depth) : '';
|
$indent = ($depth) ? str_repeat("\t", $depth) : '';
|
||||||
|
|
||||||
$slug = sanitize_title($item->title);
|
$slug = sanitize_title($item->title);
|
||||||
|
$id = 'menu-' . $slug;
|
||||||
$id = apply_filters('nav_menu_item_id', 'menu-' . $slug, $item, $args);
|
|
||||||
$id = strlen($id) ? '' . esc_attr( $id ) . '' : '';
|
|
||||||
|
|
||||||
$li_attributes = '';
|
$li_attributes = '';
|
||||||
$class_names = $value = '';
|
$class_names = $value = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user