[wp-trac] [WordPress Trac] #40596: Import nav_menu_item fails on PHP 7
WordPress Trac
noreply at wordpress.org
Sun Apr 30 21:15:17 UTC 2017
#40596: Import nav_menu_item fails on PHP 7
---------------------------+------------------------------
Reporter: RavanH | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 4.7.4
Severity: normal | Resolution:
Keywords: needs-testing | Focuses:
---------------------------+------------------------------
Comment (by mixoet):
Meta variables are undefined, because syntax of variable variables changed
in PHP7. So if you change line 884 in wordpress-importer.php
{{{#!php
<?php
$$meta['key'] = $meta['value'];
}}}
to
{{{#!php
<?php
${$meta['key']} = $meta['value'];
}}}
should do the trick. Unable to test it myself.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40596#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list