Walker_Nav_Menu start_lvl end_lvl function signature question
-
I’m getting the dreaded diagnostic…
select_menu_walker::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array)
from a theme I’ve installed.
In functions.php the declaration does appear to be wrong…
class select_menu_walker extends Walker_Nav_Menu {
function start_lvl(&$output, $depth) {
$indent = str_repeat(“\t”, $depth);
$output .= “”;
}However, if I add ‘, $args = array()’ as the 3rd argument this diagnostic continues.
Same is occurring with end_lvl() + start_el() + end_el().
No changes I make to to the function declarations seem to make any difference.
Suggestions?
- The topic ‘Walker_Nav_Menu start_lvl end_lvl function signature question’ is closed to new replies.