Template name does not display properly when a theme.json is present #47428
Labels
[Block] Template Part
Affects the Template Parts Block
[Type] Bug
An existing feature does not function as intended
Description
I expect the page template title to display in the sidebar Summary panel when I select a new custom page template. If I don't have a theme.json in my theme, this works as expected.
If I do have a theme.json in my theme, the template title displays
Default template
instead of the custom page template title.This happens if I add a template in the
customTemplates
array in theme.json – or if I use a classic PHP template and don't include it in acustomTemplates
array in the theme.json.Step-by-step reproduction instructions
theme.json
.theme.json
to the theme.Screenshots, screen recording, code snippet
The page template is selected in the modal, but "Default template" still displays as the template title in the Summary panel. This theme has a

theme.json
.Environment info
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: