Opened 4 years ago
Last modified 4 years ago
#55254 new defect (bug)
Site Editor: Template Part Areas are not exported
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 5.9 |
| Component: | Editor | Keywords: | |
| Focuses: | Cc: |
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.
This was introduced in 5.9, not 5.9.1 :)