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

Prevent deletion of page_on_front #64645

Open
jameskoster opened this issue Aug 20, 2024 · 1 comment · May be fixed by #67790
Open

Prevent deletion of page_on_front #64645

jameskoster opened this issue Aug 20, 2024 · 1 comment · May be fixed by #67790
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

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.

@fcoveram
Copy link
Contributor

I shared an idea in #68134 that includes this use case. The design shows the "Move to trash" item but in a disabled state with a help text saying that a homepage needs to be set first.

There is also a second version. I'm curious whether the main proposal meets accessibility requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Enhancement A suggestion for improvement.
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants