[wp-trac] [WordPress Trac] #55403: `wp_crop_image` returning incorrect file path when image formats filtered
WordPress Trac
noreply at wordpress.org
Wed Apr 27 05:20:09 UTC 2022
#55403: `wp_crop_image` returning incorrect file path when image formats filtered
---------------------------------------------+-----------------------------
Reporter: Mat Lipe | Owner:
| adamsilverstein
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Media | Version: 5.8
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"53292" 53292]:
{{{
#!CommitTicketReference repository="" revision="53292"
Media: Ensure `wp_crop_image()` returns correct file type.
Return the correct file path from `wp_crop_image()` when a developer
modifies the file type with via the `image_editor_output_format` filter.
Previously the function would return a broken file reference containing
the original file extension rather than the one specified via the filter.
Props mat-lipe, adamsilverstein.
Fixes #55403.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55403#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list