postids are included in block-template-parts & prevents FSE themes from being used across different sites. #25845
Labels
[Block] Template Part
Affects the Template Parts Block
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Describe the bug
postids are included in html files within the block-template-parts when they are edited within the site-editor and then exported.
As a result, the templates are tied to a particular WordPress installation and prevents themes from being used across different websites.
To reproduce
Steps to reproduce the behavior:
1a. This includes creating an index.html
that consists of
<!-- wp:template-part {"slug":"header","theme":"myfirsttheme"} /--> <!-- wp:template-part {"slug":"footer","theme":"myfirsttheme"} /-->
e.g.
<!-- wp:template-part {"postId":21984,"slug":"header","theme":myfirsttheme"} /-->
Expected behavior
FSE themes would work across different WordPress installations and sites.
Editor version (please complete the following information):
The text was updated successfully, but these errors were encountered: