diff --git a/packages/block-library/src/template-part/edit/name-panel.js b/packages/block-library/src/template-part/edit/name-panel.js index e5a6eee52ebbca..7f8ad5dec4a98e 100644 --- a/packages/block-library/src/template-part/edit/name-panel.js +++ b/packages/block-library/src/template-part/edit/name-panel.js @@ -19,6 +19,13 @@ export default function TemplatePartNamePanel( { postId, setAttributes } ) { 'slug', postId ); + const [ status, setStatus ] = useEntityProp( + 'postType', + 'wp_template_part', + 'status', + postId + ); + return (