[wp-trac] [WordPress Trac] #59990: wordpress importer not 100% PHP 8.2 compatible
WordPress Trac
noreply at wordpress.org
Thu Nov 30 08:26:40 UTC 2023
#59990: wordpress importer not 100% PHP 8.2 compatible
--------------------------+-----------------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
${var}-string-interpolation-deprecated
in php 8.2 the class-wp-import.php line 954
{{{#!php
<?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
<?php
{${$meta['key']}} = $meta['value'];
}}}
or
{{{#!php
<?php
{$$meta['key']} = $meta['value'];
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59990>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list