-
Notifications
You must be signed in to change notification settings - Fork 92
Reset option value to default for privacy policy on site empty #236
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
Reset option value to default for privacy policy on site empty #236
Conversation
danielbachhuber
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.
Hi @thrijith! Can you include a feature test for this too?
|
Hi @danielbachhuber, I have added a test in an existing scenario. LMK if it's ok. |
| Then STDOUT should be: | ||
| """ | ||
| 0 | ||
| """ |
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.
Can we also include a test that makes sure there's a non-zero value before wp site empty is run?
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 am not sure how to do that, should I create a dummy page and assign it as privacy page?
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.
should I create a dummy page and assign it as privacy page?
Yes, this would be fine.
danielbachhuber
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.
👍 Thanks @thrijith
Fixes wp-cli/wp-cli#5086