Make WordPress Core

#59990 closed defect (bug) (reported-upstream)

wordpress importer not 100% PHP 8.2 compatible

Reported by: neo2k23's profile 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)

#1 @sabernhardt
10 months ago

  • Component changed from General to Import
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Version 6.4 deleted

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.

Note: See TracTickets for help on using tickets.