[Site Editor] Identical templates load unreliably inside the Site Editor #48095
Closed
Description
Description
When switching between templates that have identical content, the Site Editor shows a blank editor. Before #47777, the impact of this issue is bigger:
- From the Archive template, adding the Category/Tag template shows the blank editor (when Tag and Category templates are inherited from the Archive template). If the admin added Tag and Category templates without modification, switching between those templates also have this issue.
- WooCommerce block templates load unreliably inside the Site Editor. woocommerce/woocommerce-blocks#8378
Step-by-step reproduction instructions
The #47777 fixes most use cases by a side effect, but the issue is still reproducible by following these steps:
- With Twenty Twenty-Three activated, create a custom template with the content of the
home.html
template. - Open the Site Editor, the editor shows the Home template by default.
- From the sidebar, navigate to the test template and select it.
- See the blank editor.
Screenshots, screen recording, code snippet
Screen.Recording.2023-02-15.at.17.57.30.mov
Environment info
- WP 6.1.1
- Gutenberg 55b0c38
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