Deleting a boilerplate post from child sites fails if it’s removed from ALL child sites.
Steps to reproduce:
- create a new boilerplate post
- publish the boilerplate post on two child sites
- go back and edit the same boilerplate post
- deselect one of the child sites and re-publish
- a popup appears asking whether to delete the post from the removed child site (expected)
- select “delete” from the popup to remove the post from the child site
- go back and edit the same boilerplate post
- deselect the last child site, so that no child sites are selected
- click Publish
- popup does not appear asking the user whether to delete the post (bug)
- nothing happens to the post
- Sites checkboxes UI is now out of sync