WordPress / wordpress-importer

The WordPress Importer
https://wordpress.org/plugins/wordpress-importer/
GNU General Public License v2.0
78 stars 76 forks source link

Hierarchy Structure is lost in imported terms when names are repeated #153

Open mrfoxtalbot opened 1 year ago

mrfoxtalbot commented 1 year ago

When importing terms for a hierarchical taxonomy, the parent-child structure will be lost if names are repeated.

Below is an example of this (in brackets, the slug)

– Computers (computers) – – Software (software) – – – Audio (audio) – – – Video (video) – Phones (phones) – – Software (software-2) – – – Audio (audio-2) – – – Video (video-2)

How to reproduce:

  1. Create several nested categories.
  2. Ensure some of the child terms hace the same name
  3. Export
  4. Import
  5. Notice how all terms are imported as "top level" ones.