Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#55254 new defect (bug)

Site Editor: Template Part Areas are not exported

Reported by: frank-klein's profile Frank Klein Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9
Component: Editor Keywords:
Focuses: Cc:


To reproduce:

  1. Open any block theme template in the Site Editor.
  2. Add a Header block, with any content.
  3. Save the template, and the template part.
  4. Go into the database. You'll see the wp_template and wp_template_part post types, as well as the wp_template_area term all working well together.
  5. Export the template and template part. Copy these to the theme, and reset any customizations.
  6. 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)

#1 @audrasjb
2 years ago

  • Version changed from 5.9.1 to 5.9

This was introduced in 5.9, not 5.9.1 :)

This ticket was mentioned in Slack in #core-test by hellofromtonya. View the logs.

2 years ago

Note: See TracTickets for help on using tickets.