wordpress-develop/tests/phpunit/tests/image
Peter Wilson 6ff649472b 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@53292 602fd350-edb4-49c9-b593-d223f7449a82
2022-04-27 05:19:52 +00:00
..
base.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
dimensions.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
editor.php Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
editorGd.php Media: Store attachment’s file size in metadata. 2022-03-10 13:08:19 +00:00
editorImagick.php Media: Store attachment’s file size in metadata. 2022-03-10 13:08:19 +00:00
functions.php Media: Ensure wp_crop_image() returns correct file type. 2022-04-27 05:19:52 +00:00
header.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
intermediateSize.php Build/Test Tools: Reduce the use of unnecessary randomness in tests. 2021-12-19 13:42:37 +00:00
meta.php Media: Fix TypeError and improve wp_exif_frac2dec() to only return int or float. 2021-11-29 19:34:51 +00:00
resize.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
resizeGd.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
resizeImagick.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
siteIcon.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
size.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00