-
Notifications
You must be signed in to change notification settings - Fork 800
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
Subscriptions: inform a clear error for pending confirmations #14326
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Update: I have a patch on WP.com already but still need to create a PR (Diff) there, and update its description. Update: Added WP.com patch already. Ready to get a review now! |
This is an automated check which relies on |
24ed1c9
to
c790bd4
Compare
htdat, Your synced wpcom patch D37554-code has been updated. |
Current PHPCS issue:
They're all around here jetpack/modules/subscriptions.php Lines 581 to 600 in bc3f632
I do not fix this PHPCS error so reviewers can easily to see the logic. After this is tested OK, I willl fix this PHPCS error. |
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 looks good to me, I only have one minor remark.
I am not a native speaker though, so I am not sure I am the best person to approve the new phrase. "Otherwise.." seems to make the phrase a bit long to me, and I would phrase it a bit differently, but I'll let a native weigh in on that.
Don't hesitate to address those now, and then add single comments to your own PR if you think it can make it easier for folks to review. Folks can also view the changes commit per commit if they need to break things down. |
Co-Authored-By: Jeremy Herve <jeremy@jeremy.hu>
htdat, Your synced wpcom patch D37554-code has been updated. |
Gotcha! My last commit fixed the PHPCS errors.
Make sense! I will do this next time. |
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 works well for me now. I'll let @kraftbj take a look as well, for functionality and for the wording. 👍
htdat, Your synced wpcom patch D37554-code has been updated. |
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 tweaked the language (we use inbox
elsewhere), but otherwise, let's do it.
r202136-wpcom and r202137-wpcom |
* [not verified] Remove empty readme section * Initial changelog for 8.2 * Changelog: add #14220 * Changelog: add #14252 * Changelog: add #14291 * Changelog: add #14309 * Changelog: add #14304 * Changelog: add general connection log. * Changelog: add #14275 * Changelog: add #14313 * Changelog: add #14213 * Changelog: add #14357 * Add sync testing instructions * Add 8.1.1 changelog back See eeaafab and 61757eb * Changelog: add #14371 * Changelog: add #14386 * Changelog: add #14471 * Changelog: add #14325 * Changelog: add #14194 * Changelog: add #14340 * Changelog: add #14418 * Changelog: add #14417 * Changelog: add #14075 * Changelog: add #14467 * Changelog: add #14307 * Changelog: add #14326
Fixes #276
Heads-up: To test this PR, it requires to have a sandbox.
Changes proposed in this Pull Request:
As explained in this comment #276 (comment), what I am trying to do in this PR:
1, Apply patch D37557-code to introduce a new status=confirming. With this change, Jetpack is able to handle 2 different cases:
confirming
: an email tries to subscribe a site for the first time.pending
: this email tries to subcribe the site again while the confirmation link (sent during the first try) has not been clicked.2, Jetpack plugin code sends respective messages for two statuses in the front-end. A notice here is that I am changing the handling of
pending
status. You can see my comment above, it was not correctly handled.Is this a new feature or does it add/remove features to an existing part of Jetpack?
Fix a bug in a current feature.
Testing instructions:
Before trying two test cases below, make sure you've done two actions:
Case 01 - Compatibility for the previous JP versions
Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.
Case 02 - Fix the bug in new releases
JETPACK__VERSION
to 8.2. https://github.com/Automattic/jetpack/blob/master/jetpack.php#L18Full Sync
section > chooseoptions, constants, functions, updates
> RunSchedule Sync
. Make sure the full-sync is finished.Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.
You subscribed this site before but you have not clicked the confirmation link yet. Please check your mailbox. Otherwise, you can manage your preferences at subscribe.wordpress.com.
Extra steps to restore your site version:
JETPACK__VERSION
.Proposed changelog entry for your changes: