-
Notifications
You must be signed in to change notification settings - Fork 805
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
Add social_notifications_subscribe option in WP Admin #14239
Conversation
This is an automated check which relies on |
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.
This change works well for me, but I have several comments. I don't really like how we're copying the same code that's used in the Likes module, but I guess that's the quickest way to fix the issue that we're aiming at.
Thanks for working on this!
@zinigor Thanks for your thorough review. I've added a new commit to address your suggestions.
Well, me too, I do not like this approach much. But since we have moved new options to Calypso or Jetpack setting pages, it's not efficient to refactor related code. |
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.
Thanks for fixing everything! I have added the changes that linter required, please don't skip checks when you commit.
Also added some new entries to the testing file.
* Changelog: 8.1 additions * Changelog: add #13858 * Changelog: add #13963 * Changelog: add #14174 * Changelog: add #14178 * Changelog: add #14175 * Changelog: add #14192 * Changelog: add #14196 * Changelog: add #14182 * Changelog: add #14218 * Changelog: add #14214 * Changelog: add #13757 * Changelog: add #14190 * Changelog: add #14131 * Changelog: add #14101 * Changelog: add #14203 * Changelog: add #14211 * Changelog: add #14224 * Changelog: add #14230 * Changelog: add #14241 * Changelog: add #14249 * Changelog: add #14264 * Changelog: add #14263 * Changelog: add #14256 * Changelog: add #10189 * Changelog: add #14240 * Changelog: add #14239 Also added some new entries to the testing file. Co-authored-by: Igor Zinovyev <[email protected]>
* Changelog: 8.1 additions * Changelog: add #13858 * Changelog: add #13963 * Changelog: add #14174 * Changelog: add #14178 * Changelog: add #14175 * Changelog: add #14192 * Changelog: add #14196 * Changelog: add #14182 * Changelog: add #14218 * Changelog: add #14214 * Changelog: add #13757 * Changelog: add #14190 * Changelog: add #14131 * Changelog: add #14101 * Changelog: add #14203 * Changelog: add #14211 * Changelog: add #14224 * Changelog: add #14230 * Changelog: add #14241 * Changelog: add #14249 * Changelog: add #14264 * Changelog: add #14263 * Changelog: add #14256 * Changelog: add #10189 * Changelog: add #14240 * Changelog: add #14239 Also added some new entries to the testing file. Co-authored-by: Igor Zinovyev <[email protected]>
Fixes #709
When /wp-admin/options-discussion.php is fully loaded, the option looks like this:
Changes proposed in this Pull Request:
Basically, I followed the same approach for another similar option
Someone likes one of my posts
in "Likes" module https://github.com/Automattic/jetpack/search?q=social_notifications_like&type=Codesocial_notifications_subscribe
option when "Subscriptions" module is activated/deactivated.Someone follows my blog
in WP Admin -> Settings -> Discussions.Email me whenever
section.I do not add tests as
social_notifications_subscribe
is covered already. Can a dev help to double check this?Is this a new feature or does it add/remove features to an existing part of Jetpack?
Testing instructions:
Proposed changelog entry for your changes:
Email me whenever: Someone follows my blog
option to wp-admin settings.