-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Site Settings: Disable Photon when in Dev mode #11783
Conversation
LGTM. |
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.
LGTM!
Holding this one until we merge #11386 |
d24dddc
to
3399da6
Compare
Quick question about this one—since Photon is a dependency for slideshows, shouldn't slideshows also be disabled when photon is off due to dev mode? |
AFAIK Photon is not a dependency for Carousel, unless I'm missing something? |
I thought it was only a dependency for Tiled Galleries. @beaulebens can you clarify? |
I just tested this with Photon turned off, and;
So, now I don't know where the expectation came from that Photon is required to use other things, but it doesn't appear to be accurate. |
@beaulebens hmmm. I know tiled galleries requires it. Maybe it turns it on just for the galleries? Can you check? If so, I can just remove the Tiled Galleries comment. |
I take that back -- Photon gets used regardless on both Carousel and Tiled Galleries, even if Photon is turned off. |
This PR will disable the Photon if the current Jetpack site is in development mode. Related with #11386.
Preview when Photon is disabled because of Dev mode:
To test:
define( 'JETPACK_DEV_DEBUG', true );
/cc @rickybanister @MichaelArestad because I have the feeling that we need do something more in addition to just disabling the toggle in that case (as also mentioned here: #11386 (comment)).