Plugin Directory

Opened 5 years ago

Closed 5 years ago

#1602 closed defect (fixed)


Reported by: borkweb Owned by:
Priority: normal Severity: normal
Plugin: not-listed Keywords: wordpress-importer


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)

wordpress-importer.diff (542 bytes) - added by borkweb 5 years ago.
Patch to insert term_relationships record for nav_menu items

Download all attachments as: .zip

Change History (4)

@borkweb5 years ago

Patch to insert term_relationships record for nav_menu items

comment:1 @borkweb5 years ago

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 @duck_5 years ago

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 @duck_5 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.