[wp-trac] [WordPress Trac] #50628: Media: wp_image_file_matches_image_meta() doesn't match when the original_image URL is used
WordPress Trac
noreply at wordpress.org
Sat Jul 11 03:10:35 UTC 2020
#50628: Media: wp_image_file_matches_image_meta() doesn't match when the
original_image URL is used
--------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by azaozz):
In 50628.diff:
- Fix `wp_image_file_matches_image_meta()` to also look at
`original_image` when present.
- Add unit test.
- Replace `test-image-large.png` with `test-image-large.jpg` in
`tests/phpunit/data/images/`. The new image is larger and the
`$image_meta` for it has `original_image` (PNG images are not scaled by
default).
- Fix and improve older tests to use the replaced image.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50628#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list