-
Notifications
You must be signed in to change notification settings - Fork 815
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
Move Calypso redirect option to Jetpack options #7732
Conversation
So this won't automatically delete it on deactivation nor deletion. We are pretty careful about what data we delete on deactivation, since we very often suggest either deactivation/reinstall of Jetpack as a debug process, and we don't want users losing settings while trying to fix something. Actually, currently we don't really clean up anything on deactivation, other than the connection options, and we clean the same options on disconnect from wp.com. Check the |
Confirmed the edit redirect using the Testing Instructions. The code itself looks good to me 👍 It sounds like we might need to do a bit more to include this option in the plugin cleanup? Also, I'm not sure if we want to look into the |
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 for me 👍
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.
The cleanup pieces are secondary to this PR, but this sets us up to be able to clean them up in a Jetpack-wide way.
Thanks for the clarification @dereksmart, I updated the PR summary to account for that. I somehow misunderstood that part from the original comment and assumed that cleanup would be automatic. If that is the case, I don't know why should we make an exception for this option and clean it up? I don't see how it's different when compared to other Jetpack settings/options and I think it should be handled in the same way. |
@jeremysawesome I don't think it should be included in the plugin cleanup (see my previous comment).
It doesn't look like we need to do anything else in order for this option to be picked up by In conclusion, the changes in this PR look sufficient to me, but please let me know if y'all don't agree. |
I can't think of any reason why we'd want to either! I wanted to make it clear that it wasn't going to, since it sounded like that was a goal judging by the original PR comment, but this change as it it LGTM! |
pushed to 5.3 48e387b |
Instead of using a separate site option for Calypso redirect switch, let's utilize existing Jetpack options functionality. This was suggested by @beaulebens in #7702.
Testing instructions
if ( Jetpack::get_option( 'edit_links_calypso_redirect', true ) && ! is_admin() ) {
Test with supported Custom Post Types too (Portfolios and Testimonials).