[wp-trac] [WordPress Trac] #64724: WordPress Importer does not remap noteId in block metadata when reassigning comment IDs
WordPress Trac
noreply at wordpress.org
Wed Feb 25 12:00:46 UTC 2026
#64724: WordPress Importer does not remap noteId in block metadata when reassigning
comment IDs
--------------------------+-----------------------------
Reporter: tenacityio | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 6.9.1
Severity: minor | Keywords: notes import
Focuses: |
--------------------------+-----------------------------
**Steps to reproduce:**
1. Create a post/page with block notes (WP 6.9 Notes feature)
2. Export via Tools → Export
3. Import the WXR file into another site (or same site) via the WordPress
Importer
4. 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64724>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list