[wp-trac] [WordPress Trac] #52826: New wp_getimagesize() causing unexpected failures
WordPress Trac
noreply at wordpress.org
Wed Mar 17 18:52:55 UTC 2021
#52826: New wp_getimagesize() causing unexpected failures
--------------------------+---------------------
Reporter: terriann | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.7.1
Component: Media | Version: 5.7
Severity: critical | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Changes (by terriann):
* severity: normal => critical
Comment:
Thank you, @SergeyBiryukov, for your consideration of this ticket for a
5.7.1 release.
I added a patch with changes that should solve the problem. I'm happy to
adjust and provide a new one if there is any feedback.
I'm also increasing the severity of this issue to **critical** because we
have observed that downgrading to the previous WordPress version (5.6.2)
will only fix subsequently uploaded images. In testing, images uploaded
while 5.7 was the active version are not retroactively updated after the
downgrade. I believe this is because the height, width, and additional
attachment metadata are written to the database on upload.
It is worth noting that the patch I provided also does not retroactively
repair missing metadata for any affected images.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52826#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list