-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Editor: Templat list fallback to slug #36947
Conversation
Size Change: +15 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
This seems like a sensible fallback, but we should also do everything we can to avoid situations in which templates can be nameless. I noticed that the template renaming UI in the post editor doesn't actually allow you to enter an empty name: name.mp4Can we do that in the template editor too? |
@jameskoster, as you mentioned, this is just a fallback. I will also update #36933 to use slug when the template title is empty. |
3d6a8e6
to
36767e7
Compare
36767e7
to
db030cc
Compare
Description
The title isn't required for post types. While we have a "soft" requirement for template titles, it's still possible to have one without it.
Currently, when a template has no title, it's not possible to access it for editing. PR adds fallback to template slug for similar scenarios.
How has this been tested?
Screenshots
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).