#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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Media | Version: | 5.5 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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.
6 years ago
#2
- Keywords has-patch has-unit-tests added
Trac ticket: https://core.trac.wordpress.org/ticket/50628
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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).