Merge pull request #707 from kara-todd/master
Navbar items break if the menu depth is set to exclude children
This commit is contained in:
@@ -38,7 +38,7 @@ class Roots_Nav_Walker extends Walker_Nav_Menu {
|
||||
}
|
||||
|
||||
function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) {
|
||||
$element->is_dropdown = !empty($children_elements[$element->ID]);
|
||||
$element->is_dropdown = ((!empty($children_elements[$element->ID]) && (($depth + 1) < $max_depth)));
|
||||
|
||||
if ($element->is_dropdown) {
|
||||
if ($depth === 0) {
|
||||
|
||||
Reference in New Issue
Block a user