WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 23 months ago

#28297 new defect (bug)

Losing custom nav menu data while importing / exporting XML

Reported by: isharis Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.9.1
Component: Import Keywords: needs-patch needs-testing
Focuses: Cc:

Description

I have added few fields to the menu for mega menu functionality: https://gist.github.com/mharis/150f43e09adf72d7d0bb

This works fine and when I tried to export the site content which did have all the navigation items and the custom fields and its values in the XML file (https://www.dropbox.com/s/7i2l3x2mvpgup58/xml-test.xml) which is perfectly fine.

The problem happens when importing, only the keys are imported for the custom navigation menu fields and not its value. The values are stripped even through the data seems correct in the XML file.

Any thoughts over it?

Attachments (1)

xml-test.xml (15.3 KB) - added by isharis 3 years ago.

Download all attachments as: .zip

Change History (3)

@isharis
3 years ago

#1 in reply to: ↑ description @isharis
3 years ago

Replying to isharis:

I have added few fields to the menu for mega menu functionality which works fine: https://gist.github.com/mharis/150f43e09adf72d7d0bb

I tried to export my site content and the exported XML file did have all the navigation items and custom menu fields with their correct values (https://www.dropbox.com/s/7i2l3x2mvpgup58/xml-test.xml).

The problem happens when importing the XML file, only the keys are imported from the custom navigation menu fields and not the values. The values are stripped even though the data seems correct in the XML file.

Any thoughts over it?

Fixed . Sorry about the typos.

Last edited 3 years ago by isharis (previous) (diff)

#2 @chriscct7
23 months ago

  • Keywords needs-patch needs-testing added
Note: See TracTickets for help on using tickets.