[wp-trac] [WordPress Trac] #60480: Warning: Undefined array key "file" in .../wp-includes/media.php on line 1723
WordPress Trac
noreply at wordpress.org
Fri Feb 9 01:11:09 UTC 2024
#60480: Warning: Undefined array key "file" in .../wp-includes/media.php on line
1723
--------------------------+------------------------------
Reporter: shanemac10 | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 6.4.3
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by shanemac10):
As an additional note: I made the following change to the code, and re-ran
the import. The images did not import, and there were no errors printed
either.
**Added...**
{{{
($image_meta['file'] ?? false) &&
}}}
**Like so...**
{{{
1723. if (($image_meta['file'] ?? false) && preg_match( '/-e[0-9]{13}/',
$image_meta['file'], $img_edit_hash )
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60480#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list