#50628 closed defect (bug) (fixed)
Media: wp_image_file_matches_image_meta() doesn't match when the original_image URL is used
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Media | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
This is an edge case in the (new) wp_image_file_matches_image_meta()
.
Attachments (1)
Change History (6)
This ticket was mentioned in PR #399 on WordPress/wordpress-develop by azaozz.
4 years ago
#2
- Keywords has-patch has-unit-tests added
Trac ticket: https://core.trac.wordpress.org/ticket/50628
#4
@
4 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 48454:
Note: See
TracTickets for help on using
tickets.
In 50628.diff:
wp_image_file_matches_image_meta()
to also look atoriginal_image
when present.test-image-large.png
withtest-image-large.jpg
intests/phpunit/data/images/
. The new image is larger and the$image_meta
for it hasoriginal_image
(PNG images are not scaled by default).