fix extended Walker class debugger deprecation warning

This commit is contained in:
Adam Piontek 2023-01-24 12:31:08 -05:00
parent 12ef601c40
commit 52772c47a2

View file

@ -93,7 +93,8 @@ class RDNYC_Menu_Walker extends Walker_Nav_Menu {
$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 )
$element->classes[] = 'active';