Opened 3 years ago
Closed 3 years ago
#59990 closed defect (bug) (reported-upstream)
wordpress importer not 100% PHP 8.2 compatible
| Reported by: | neo2k23 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Import | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.