Warning: Declaration of theme_description_walker::start_el(&$output, $item,出现错误代码,怎么修改。
这个问题通常出在自定义菜单函数处,并且高版本中wordpresss
重新定义了start_el()函数参数,所以报错。
重写即可
原
function start_el(&$output, $item, $depth, $args
改为
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0
原
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args)
改为
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args, $id );