![古いWPテーマでphp5系から7へ変更してヘッダー部分にエラーが…](https://i0.wp.com/www.onetest.info/wp-content/uploads/2018/04/error.png?fit=800%2C800&ssl=1)
Warning: Declaration of description_walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/アカウント名/ドメイン名/public_html/wp-content/themes/テーマ名/functions.php on line 0
とエラーが出る。functions.phpを覗いてみることに。start_elの部分がありました。
/*-------------------------------------------*/
class description_walker extends Walker_Nav_Menu
{
function start_el(&$output, $item, $depth, $args)
エラーを吐いている部分のソースを下記に書き変えてみる。
/*-------------------------------------------*/
class description_walker extends Walker_Nav_Menu
{
function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
問題解決しました。