Bug Report
Describe the current, buggy behavior
wp site empty doesn't clear the sticky_posts option, which means newly created posts can end up sticky if their ID matches an old sticky post before the site was emptied.
Describe how other contributors can replicate this bug
- Publish a post and make it sticky
- Run
wp site empty
- Create a new post with the same ID as the previously sticky post
- Observe that the new post is unexpectedly sticky
Describe what you would expect as the correct outcome
The sticky_posts option should be cleared when the site is emptied.
Bug Report
Describe the current, buggy behavior
wp site emptydoesn't clear thesticky_postsoption, which means newly created posts can end up sticky if their ID matches an old sticky post before the site was emptied.Describe how other contributors can replicate this bug
wp site emptyDescribe what you would expect as the correct outcome
The
sticky_postsoption should be cleared when the site is emptied.