-
Notifications
You must be signed in to change notification settings - Fork 798
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
Photon: Add webp support #20473
Photon: Add webp support #20473
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
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 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. 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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well for me, was able to see working Photon urls in a test gallery and slideshow using webp images.
@kraftbj I did a quick search to see if there was anything else that might need updating, any of these stand out to you?
if ( in_array( $ext, array( 'jpg', 'jpeg', 'png', 'gif' ) ) ) { |
if ( in_array( $ext, array( 'jpg', 'jpeg', 'png', 'gif' ) ) ) { |
jetpack/projects/plugins/jetpack/_inc/lib/core-api/class.jetpack-core-api-site-endpoints.php
Line 224 in ba2dd6c
get_object_vars( wp_count_attachments( array( 'image/jpeg', 'image/png', 'image/gif', 'image/bmp' ) ) ), |
'jetpack_supported_media_sideload_types', |
image = /(?:jpe?g|png|gif)$/i.exec( file.name ); |
@samiff I don't think any of those are required for Photon to function, but it does look like they all do to be updated. I would feel more comfortable not including them as part of 10.0, though. With the scope creeping a bit, let's move this to 10.1. |
projects/plugins/jetpack/tests/php/test_class.jetpack_photon.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me 👍
@kraftbj are you still working on this one, or need approval again after the merging with master? |
Great news! One last step: head over to your WordPress.com diff, D64846-code, and commit it. Thank you! |
r230845-wpcom |
…workflow * master: (57 commits) E2E tests: run against atomic test site (#20807) Connection: remove in-place from main connection flow (#20797) Restore the 'safecss_embed_style' filter from the pre-4.7 Custom CSS (#20654) Photon: Add webp support (#20473) Responsive Videos: support more embed block formats (#20834) Instant Search: ensure box-shadow and text-shadow aren't applied to search buttons (#20833) Search: Apply design polish to the Customberg customization interface (#20754) Block editor: add .min suffix to all resources loaded in editor (#20820) Release forgotten projects (#20837) tools: Update help texts (#20830) Remove any wp-env leftovers (#20835) CLI: Remove autotagger prompt when generating a new plugin (#20826) Enable Support to perform utf8 conversions during checksum calculations (#20816) remove unused methods (#20828) Remove unnecessary use of `prettier` on JSON data (#20823) push-to-mirrors: fix auth for "mirror repo exists" check (#20824) cli: Fix tests (#20825) Issue templates: update docs & allow selecting no plugin (#20821) update annotations versions (#20794) Admin: use JetpackFooter RNA component (#20630) ...
Supports #19654
Changes proposed in this Pull Request:
Jetpack product discussion
n/a
Does this pull request change what data or activity we track or use?
No.
Testing instructions: