-
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
Block Template creation is using empty content instead of the appropiate fallback #36648
Comments
cc @jameskoster do you know if this is a bug or not? I'm not sure if the site editor used to be smarter about this or not. |
Yup, this is listed as a todo on #36597 :) |
38 tasks
7 tasks
github-actions
bot
added
the
[Status] In Progress
Tracking issues with work in progress
label
Dec 2, 2021
This was referenced Jun 21, 2022
Closed
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
This was brought to my attention by @carolinan over at WordPress/twentytwentytwo#256
When a theme doesn't provide a template for a specific page (404, Search for example) we will always fallback through the hierarchy and show in the frontend an alternative existing template. In the case of TT2, if the search.html doesn't exist, the frontend will show index.html instead:
This is inconsistent with what the flow of template creation is showing us. When you try to create a new Search template, we see no content at all:
This is inconsistent with what the user sees in the frontend before creating the template and forces them to create something from scratch.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: