Opened 2 years ago
Last modified 2 weeks ago
#60545 assigned defect (bug)
Default XML exporter is failing to export block templates.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 6.4.3 |
| Component: | Export | Keywords: | has-patch needs-test-info |
| Focuses: | Cc: |
Description
When attempting to export XML through the "Tools > Exports" menu with the selection "Choose what to export > All," the process does not include the export of created templates.
Attachments (1)
Change History (12)
This ticket was mentioned in PR #6114 on WordPress/wordpress-develop by @heymehedi.
2 years ago
#1
#2
@
20 months ago
- Component changed from Export to General
@afercia could you please take a look at this issue?
Thanks
#3
@
20 months ago
- Component changed from General to Export
- Keywords has-screenshots removed
- Severity changed from major to normal
@heymehedi thanks for your PR! I'm not sure I'm the best person to have a look at it, as I'm not very familiar with the Exporter. Cc @SergeyBiryukov
#5
@
20 months ago
- Keywords needs-testing needs-testing-info added
Patch needs testing first.
Also testing instructions might help to move it froward.
Adding keywords accordingly.
This ticket was mentioned in Slack in #core-test by boniu91. View the logs.
8 months ago
#8
@
8 months ago
- Keywords 2nd-opinion added
Reproduction Report
Description
❌ This report confirms that the issue cannot be reproduced.
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Four 1.3
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- ❌ Unable to reproduce the reported issue.
- ✅ The custom templates are visible in the exported XML file as expected.
Supplemental Artifacts
#9
@
8 months ago
- Keywords 2nd-opinion removed
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 6.8.1
- PHP: 8.2.27
- Server: nginx/1.26.1
- Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
- Browser: Firefox 138.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- ❌️ Error condition DOES NOT occur (NOT reproduced).
Additional Notes
- I set up a blank site using local.
- I exported the site to create a data basis.
- I created a custom block template named „test Template“
- I exported the site and checked to see if the definition of the block template was included.
- The XML report included my newly created template
Supplemental Artifacts
Added as Attachment
#10
@
8 months ago
Reproduction Report
Description
❌ This report validates that the issue cannot be reproduced.
Environment
- WordPress: 6.8.1
- PHP: 8.2.27
- Server: nginx/1.26.1
- Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
- Browser: Chrome 135.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- ❌ Unable to reproduce the issue.
Additional Notes
- The xml file includes the template.
#11
@
2 weeks ago
- Keywords needs-testing removed
Reproduction Report
Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.30
- Server: nginx/1.29.4
- Database: mysqli (Server: 9.5.0 / Client: mysqlnd 8.2.30)
- Browser: Chrome 143.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.1
Steps taken
- Set up a fresh WordPress installation.
- Created a new block template via Appearance → Editor → Templates.
- Navigated to Tools → Export.
- Selected Choose what to export → All content.
- Generated and downloaded the XML export file.
- Opened the XML file and searched for the created block template.
Result: ❌ Bug is not occurring
Expected behavior
- Block templates should be included in the XML export when exporting All content.
Additional Notes
- Tested on latest trunk and matches results from previous reports on this ticket.
- Behavior appears correct and consistent across multiple environments.
- No regressions or export issues detected.

Trac ticket: https://core.trac.wordpress.org/ticket/60545#ticket