Skip to content

Conversation

jjgrainger
Copy link
Contributor

@jjgrainger jjgrainger commented Jun 22, 2022

Summary

Fixes #361

Relevant technical choices

  • Removes casting the value returned by the webp_uploads_upload_image_mime_transforms to an array.
  • Add tests to confirm behaviour works as expected based on webp_uploads_get_upload_image_mime_transforms comments.

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@jjgrainger jjgrainger added [Type] Bug An existing feature is broken [Focus] Images no milestone PRs that do not have a defined milestone for release labels Jun 22, 2022
@jjgrainger jjgrainger added [Type] Enhancement A suggestion for improvement of an existing feature and removed [Type] Bug An existing feature is broken labels Jun 22, 2022
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jjgrainger Looks good, +1 for the extensive test coverage!

@felixarntz felixarntz added this to the 1.3.0 milestone Jun 22, 2022
@felixarntz felixarntz removed the no milestone PRs that do not have a defined milestone for release label Jun 22, 2022
@felixarntz felixarntz changed the title Fix webp_uploads_upload_image_mime_transforms filter Ensure incorrect usage of webp_uploads_upload_image_mime_transforms filter is treated correctly Jun 22, 2022
@felixarntz felixarntz added [Type] Bug An existing feature is broken [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) and removed [Type] Enhancement A suggestion for improvement of an existing feature labels Jun 22, 2022
Copy link
Contributor

@eugene-manuilov eugene-manuilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@felixarntz felixarntz merged commit ee01a8d into trunk Jun 23, 2022
@felixarntz felixarntz deleted the fix/361-webp-image-mime-transforms-filter branch June 23, 2022 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize: webp_uploads_upload_image_mime_transforms filter
4 participants