Default page and single post templates can be renamed in the template editor #40876
Labels
[Feature] Template Editing Mode
Related to the template editor available in the Block Editor
[Type] Bug
An existing feature does not function as intended
Description
I am not sure if this is a bug, but it was unexpected for me.
While testing #40830, I noticed that if I activate a block theme that does not have a singular, post or page template, and I use the Site editor to create a page or a single template, then those templates can be renamed in the template editor.
(They can not be renamed when opened in the site editor.)
To clarify, these page templates are not custom page templates created via Block editor > Templates > New, and assigned to specific posts or pages, these are the default templates. The page (and soon , post) page template are the only default templates that can be renamed this way, since they are the only default templates that can be edited in the template editor.
Step-by-step reproduction instructions
Optionally create a second, new page and see that the renamed template is used as the default.
Screenshots, screen recording, code snippet
No response
Environment info
Gutenberg current trunk or 13.1.0, WordPress 6.0 Rc1.
Beta tester plugin
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: