The ordering of the terms from the exported JSON may be such that a child term is created before it's parent, which causes the pull to fail.
This change fixes this by sorting the list of terms before importing. The terms are sorted such that each child term is preceded by it's parent, so the parent term always is created first.
The ordering of the terms from the exported JSON may be such that a child term is created before it's parent, which causes the pull to fail.
This change fixes this by sorting the list of terms before importing. The terms are sorted such that each child term is preceded by it's parent, so the parent term always is created first.
Fixes https://github.com/forumone/wp-cfm/issues/114