Template parts and synced patterns are undefined and can not be edited In the Site Editor when Gutenberg is active #67443
Labels
[Block] Template Part
Affects the Template Parts Block
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When I use a block theme, and I have Gutenberg trunk active, (19.8.0-rc.1) template parts are undefined when I select the "Edit" option from the toolbar of the template part block.
Step-by-step reproduction instructions
Activate a block theme.
Activate Gutenberg trunk
Go to Appearance > Editor. Select a template to edit.
Locate or insert any template part in the template.
With the template part selected, locate and click on the "Edit" option in the block toolbar.
Expected result: The template part opens and shows the correct blocks without errors.
Actual result: The editor is blank except for a notification that says the template part may have been deleted.
The url is
site-editor.php?p=%2Fwp_template_part%2Fundefined&canvas=edit&focusMode=true
Without Gutenberg active, it is
site-editor.php?postId=ollie%2F%2Fheader&postType=wp_template_part&focusMode=true&canvas=edit
I expect the
Screenshots, screen recording, code snippet
template-part.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: