[wp-trac] [WordPress Trac] #64295: PHP 8.5: Incorrect array access in `wp_read_image_metadata`
WordPress Trac
noreply at wordpress.org
Mon Nov 24 16:53:12 UTC 2025
#64295: PHP 8.5: Incorrect array access in `wp_read_image_metadata`
-------------------------------------------+-------------------------------
Reporter: swissspidy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch php85 needs-testing | Focuses: php-
| compatibility
-------------------------------------------+-------------------------------
Comment (by adamsilverstein):
Fix looks good and makes sense.
> In recent WP-CLI media tests I noticed a "Cannot use bool as array"
error in wp_read_image_metadata in PHP 8.5.
Can we add a similar test to core that fails before your patch?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64295#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list