fix extended Walker class debugger deprecation warning
This commit is contained in:
parent
12ef601c40
commit
52772c47a2
1 changed files with 2 additions and 1 deletions
|
@ -93,7 +93,8 @@ class RDNYC_Menu_Walker extends Walker_Nav_Menu {
|
||||||
$output .= $item_html;
|
$output .= $item_html;
|
||||||
}
|
}
|
||||||
|
|
||||||
function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output) {
|
function display_element($element, &$children_elements, $max_depth, $depth, $args, &$output) {
|
||||||
|
if (!$depth) { $depth = 0; }
|
||||||
if ( $element->current )
|
if ( $element->current )
|
||||||
$element->classes[] = 'active';
|
$element->classes[] = 'active';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue