close
The Wayback Machine - https://web.archive.org/web/20221024152006/https://github.com/WordPress/performance/pull/393
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure incorrect usage of webp_uploads_upload_image_mime_transforms filter is treated correctly #393

Merged
merged 3 commits into from Jun 23, 2022

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 Issues related to the Images focus area 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
@jjgrainger jjgrainger requested a review from mukeshpanchal27 Jun 22, 2022
Copy link
Member

@felixarntz felixarntz left a comment

@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 [Module] WebP Uploads Issues for the WebP Uploads module 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

LGTM 👍

mitogh
mitogh approved these changes Jun 23, 2022
@felixarntz felixarntz merged commit ee01a8d into trunk Jun 23, 2022
35 checks passed
@felixarntz felixarntz deleted the fix/361-webp-image-mime-transforms-filter branch Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Images Issues related to the Images focus area [Module] WebP Uploads Issues for the WebP Uploads module [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