This allows terms to set a parent, based on their key in the terms array.

I also cast terms to objects before manipulating them instead of after, because terms aren't arrays and it makes the functional changes in this patch just a few lines.

It currently assumes that a parent term will be listed before any children. I could solve this but it would require significant changes (a separate function for handling terms which is idempotent and recursive).

Comments

lotyrin’s picture

Status: Active » Needs review
StatusFileSize
new2.39 KB

Update status.

This one also updates the README

jyee’s picture

Patch #1 works for me.

jhedstrom’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #1 works perfectly.

jhedstrom’s picture

Re-rolling #1.

jyee’s picture

Status: Reviewed & tested by the community » Fixed

committed reroll from #4

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.