Prevent deletion of page_on_front
#64645
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Type] Enhancement
A suggestion for improvement.
If you set a static homepage, then delete that page, the site will revert to displaying latest posts. This can be a bit unexpected, especially if the site doesn't utilise a blog. It could improve the overall UX to place a guardrail here, preventing users from deleting the homepage.
An API for protecting pages could be useful. For instance WooCommerce may want to prohibit the deletion of shop, cart, and checkout pages.
The text was updated successfully, but these errors were encountered: