Opened 7 months ago
Closed 7 months ago
#1602 closed defect (fixed)
wordpress-importer
| Reported by: | borkweb | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | not-listed |
| Severity: | normal | Keywords: | wordpress-importer |
| Cc: |
Description
The wordpress-importer plugin does not insert the term_relationships record when importing navigation menus.
Attached is the diff to resolve this issue.
Attachments (1)
Change History (4)
Changed 7 months ago by borkweb
comment:1 Changed 7 months ago by borkweb
I failed to mention that the lack of the term_relationships record causes the data to be imported but the menu items to not be associated with the navigation menu.
comment:2 Changed 7 months ago by duck_
Thanks for the report and patch. However, there's something else going on here.
The importer uses wp_update_nav_menu_item() which previously set tax_input when sending data to wp_insert_post() so that the menu item would be created and associated with a menu in one go. But a change in 3.5 (http://core.trac.wordpress.org/changeset/22235) has stopped this when a new menu item is created. I have re-opened http://core.trac.wordpress.org/ticket/22189 and put a patch on that ticket.
comment:3 Changed 7 months ago by duck_
- Resolution set to fixed
- Status changed from new to closed

Patch to insert term_relationships record for nav_menu items