Opened 5 months ago
Last modified 5 months ago
#64724 new defect (bug)
WordPress Importer does not remap noteId in block metadata when reassigning comment IDs
| Reported by: | tenacityio | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Import | Version: | 6.9.1 |
| Severity: | minor | Keywords: | notes import |
| Cc: | Focuses: |
Description
Steps to reproduce:
- Create a post/page with block notes (WP 6.9 Notes feature)
- Export via Tools → Export
- Import the WXR file into another site (or same site) via the WordPress Importer
- Open the imported post in the editor
Expected: Notes appear attached to their respective blocks
Actual: Notes import as comments but are unlinked from blocks. The importer assigns new comment_id values but does not update the corresponding "noteId":N values in block metadata within post_content.
Workaround: Post-import script that remaps noteId references in post_content to the new comment_id values by matching on insertion order.
Attachments (1)
Change History (3)
#1
@
5 months ago
- Milestone Awaiting Review → Future Release
I thought this might be a problem with footnotes as well, but a footnote use a UUID as its ID, not any underlying auto-incremented ID.
#2
@
5 months ago
Hi @westonruter @tenacityio, I guess we need to fix it in upstream repo here https://github.com/WordPress/wordpress-importer/?
If Yes, I do have a PR ready for the same - https://github.com/WordPress/wordpress-importer/pull/254
Thanks,
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Sample XML file with Notes