Opened 5 years ago
Last modified 5 years ago
#55254 new defect (bug)
Site Editor: Template Part Areas are not exported
| Reported by: | anonymized_8769252 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Editor | Version: | 5.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
To reproduce:
- Open any block theme template in the Site Editor.
- Add a Header block, with any content.
- Save the template, and the template part.
- Go into the database. You'll see the
wp_templateandwp_template_partpost types, as well as thewp_template_areaterm all working well together. - Export the template and template part. Copy these to the theme, and reset any customizations.
- See that the Header block is now a generic Template Part block.
Cause: During the export, the template part area is not added to the template part block.
The saved block might me something like <!-- wp:template-part {"slug":"header"} /-->, but it needs to be <!-- wp:template-part {"slug":"header","area":"header"} /-->
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This was introduced in 5.9, not 5.9.1 :)