-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Package] Editor/packages/editor/packages/editor[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Description
In #60447 we added the ability for non administrators to preview the template as they are editing a post. Even long before this editors were always able to switch between which template should be selected for a post.
Today in trunk neither option is available to editor roles or below. They don't get the template selector and they don't get a template preview.
Looking into the source code the templateId
never gets defined
gutenberg/packages/editor/src/components/post-template/panel.js
Lines 22 to 29 in 7e9e53d
const { templateId, isBlockTheme } = useSelect( ( select ) => { | |
const { getCurrentTemplateId, getEditorSettings } = | |
select( editorStore ); | |
return { | |
templateId: getCurrentTemplateId(), | |
isBlockTheme: getEditorSettings().__unstableIsBlockBasedTheme, | |
}; | |
}, [] ); |
This is a major regression that we need to fix before the next WordPress release.
Metadata
Metadata
Assignees
Labels
[Package] Editor/packages/editor/packages/editor[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Type
Projects
Status
✅ Done