You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default page and single post templates can be renamed in the template editor #40876
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.
Activity
Mamaduka commentedon May 6, 2022
This is a bug. Changing template name for built-in template should be disabled.
I will create PR shortly.