-
Notifications
You must be signed in to change notification settings - Fork 813
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
Tiled Galleries: do not rely on the Tiled Gallery module. #11061
Conversation
Fixes #10753 With this PR, one can use the Tiled Gallery block on their site even if the Tiled Gallery module is not active. The block, however, relies on the Photon module.
D22751-code. (newly created revision) |
Thank you for the great PR description! When this PR is ready for review, please apply the Error TypeError
Dangerfile
|
I'm concerned about the impact to user experience this will have since it's not at all obvious that gallery block depends on "speeding up images" -feature unless we rename that feature somehow. This is a good first step, but as a next step, would it be possible to rely on Photon URLs without relying on the module being active? Does Tiled gallery module turn Photon on in the background somehow? |
That is definitely something we can do. In fact, we already do it for other features of Jetpack like Related Posts or the Top Posts widget: we use Photon, whether you have the module on or not. Ideally, I think we should always have the Tiled Gallery block available, and have it use Photon behind the scenes if the feature is on on the site. I'm not sure this can be done today though. |
Tested, worked well. |
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.
tests well
Agree that this seems like a desirable long-term solution. |
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.
Code looks good and tests well 👍
Noting that it looks like D22751-code will need some additional work which we'll need to be sure is synced back here. |
Syncing back in #11136 |
Syncs with changes in D22751-code that weren't included in #11061
Syncs with changes in D22751-code that weren't included in #11061
Fixes #10753
Changes proposed in this Pull Request:
With this PR, one can use the Tiled Gallery block on their site even
if the Tiled Gallery module is not active. The block, however, relies
on the Photon module.
Testing instructions:
Proposed changelog entry for your changes: