Opened 10 months ago
Closed 10 months ago
#59990 closed defect (bug) (reported-upstream)
wordpress importer not 100% PHP 8.2 compatible
Reported by: | neo2k23 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Import | Keywords: | |
Focuses: | Cc: |
Description
${var}-string-interpolation-deprecated
in php 8.2 the class-wp-import.php line 954
<?php ${$meta['key']} = $meta['value'];
Triggers a deprecation notification.
https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated
Should this be changed to ?
<?php {${$meta['key']}} = $meta['value'];
or
<?php {$$meta['key']} = $meta['value'];
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi and thanks for the report!
An issue was already opened about this on the importer repository:
https://github.com/WordPress/wordpress-importer/issues/154
Please continue the discussion there.