-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix coming soon unintentionally expose the rest of the site #1529
Conversation
Size Change: 0 B Total Size: 201 kB ℹ️ View Unchanged
|
This looks like a good solution, @chihsuan. I could see other hosts having a similar problem in the future if they integrate with coming soon mode. Perhaps we should move the logic to the core rest api and solve it generally? 🤔 |
Good idea! I think we can move the coming soon mode check and return 200 logic to the core reset api. But we probably need to keep the logic for setting |
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, nice work @chihsuan!
@adrianduffell Good point, I think so too. @chihsuan I think to provide the most flexibility, we could add 2 filters for both of these just before we set them. It should allow for hosts to determine the default coming soon state and store-only mode after going through core profiler |
Sounds good! I'll create a follow-up issue for this. |
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 change makes sense and LGTM! Thanks @chihsuan 🚀
Changes proposed in this Pull Request:
Closes #1528.
This PR modifies the handling of WooCommerce's coming soon initialization endpoint to respect WordPress.com's site-wide Coming Soon status. Key changes:
true
immediately to prevent WooCommerce from modifying the site's visibilitywoocommerce_store_pages_only
option when the site is already liveHow to test the changes in this Pull Request:
Test with Coming Soon mode enabled
Test with Coming Soon mode disabled
Other information:
FOR PR REVIEWER ONLY: