Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#40163 closed defect (bug)

PHP 7 bug in nav-menu.php — at Initial Version

Reported by: lucaspw's profile lucaspw Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Hi

In PHP 7 is bug in nav menus and wordpress respond error:

<b>Notice</b>: Array to string conversion in <b>/Applications/MAMP/htdocs/enginzyme/wp-includes/nav-menu.php</b> on line <b>604</b><br />

This can be fast fix, you must replace this line:

  1. $items[$k]->$argsoutput_key? = $i++;

for:

$items[$k]->{$argsoutput_key?} = $i++;

Change History (0)

Note: See TracTickets for help on using tickets.