Skip to content
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

Me: Fixes logic for holiday snow date gate #1170

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

ebinnion
Copy link
Contributor

@ebinnion ebinnion commented Dec 2, 2015

In #1138, I added the holiday snow checkbox on the /me/account route. Unfortunately, my date math didn't properly handle showing the checkbox for the beginning of the year. 😁

This PR fixes that and simplifies attempts to simplify some of the logic.

cc @Viper007Bond who pointed out my logic issue in the previous PR.

To test:

  • Checkout update/me-holiday-snow
  • On a WordPress.com site, go to $site/wp-admin/options-general.php and ensure holiday snow is turned on
  • Go to /me/account
  • Toggle the checkbox for holiday snow a few times and ensure that the holiday snow displays accordingly

@ebinnion ebinnion added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature] User & Account Settings (/me) Settings and tools for managing your WordPress.com user account. labels Dec 2, 2015
@ebinnion ebinnion self-assigned this Dec 2, 2015
@lezama lezama added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 2, 2015
ebinnion added a commit that referenced this pull request Dec 2, 2015
…gate

Me: Fixes logic for holiday snow date gate
@ebinnion ebinnion merged commit 487f96c into master Dec 2, 2015
@ebinnion ebinnion deleted the update/me-holiday-snow-date-gate branch December 2, 2015 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] User & Account Settings (/me) Settings and tools for managing your WordPress.com user account.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants