-
Notifications
You must be signed in to change notification settings - Fork 843
Jetpack newsletter settings skeleton #46049
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
base: trunk
Are you sure you want to change the base?
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 1 file.
1 file is newly checked for coverage.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
98bc3b5 to
33a9b35
Compare
jeherve
left a comment
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.
You should be good to create the mirror repo, but I left a few comments below for some minor changes.
| * @return bool | ||
| */ | ||
| private function expose_to_users() { | ||
| return apply_filters( 'jetpack_wp_admin_newsletter_settings_enabled', false ); |
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.
We'll want to add a docblock here so the filters can be documented in the codex thanks to the parser.
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.
I intend this just as a temporary feature flag so users don't see it until it's ready and I can work in small PRs. Is documenting it in the codex the right thing to do?
Fixes Dotcom-15285
Proposed changes:
Add a skeleton package that can host newsletters related functionality, though in the immediate future only the Settings page will be added.
Todo: Create a mirror repo once agreed
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
It's just a skeleton and a PoC
add_filter( 'jetpack_wp_admin_newsletter_settings_enabled', '__return_true' );run early, e.g. by adding it to a new mu-plugin