Instant Search: don't photon-ize SVG images#19927
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
kangzj
left a comment
There was a problem hiding this comment.
Tested working and LGTM. Hooray for the test! 👍
|
🚢 Shipped in r226345-wpcom. |
c6cda21 to
67a5a0a
Compare
|
@jeherve would you mind pressing the big merge button for me please? I had to rebase and that seems to have dismissed your review unfortunately. Also - is there any possibility of having this one cherry-picked across to v9.8? It's affecting a Team 51 site (see p4Kr4c-4gB-p2#comment-18288). Thanks :) |
jsnmoon
left a comment
There was a problem hiding this comment.
Resident Jetpack approver to the rescue!
|
Thank you @jsnmoon :) |
* [not verified] Search: don't photon-ize SVG images * [not verified] Changelog * [not verified] Specify allowed file types rather than excluding SVG * [not verified] Add test * [not verified] Handle .jpeg extension
|
Sorry, I had missed that one for some reason. I cherry-picked this to |
Fixes #19925.
Changes proposed in this Pull Request:
SVG images aren't supported by Photon. This PR skips Photon if the image is SVG.
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
/wp-admin/admin.php?page=jetpack#/performanceand that Jetpack Search has either the 'Expanded' or 'Product' result format selected.