#50628 closed defect (bug) (fixed)
Media: wp_image_file_matches_image_meta() doesn't match when the original_image URL is used
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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.
5 years ago
#2
- Keywords has-patch has-unit-tests added
Trac ticket: https://core.trac.wordpress.org/ticket/50628
#4
@
5 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_imagewhen present.test-image-large.pngwithtest-image-large.jpgintests/phpunit/data/images/. The new image is larger and the$image_metafor it hasoriginal_image(PNG images are not scaled by default).