Distributor 2.3.2 does not create parent-child relationships for terms when creating terms
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 66/100
Research direction
Start by tracing the code that creates or assigns taxonomy terms when a post is pulled to a receiving site; the issue does not name a file or test. Check how the parent term is represented and handled in that flow, then add or update a test for a child term whose parent already exists on the receiving site. Done means the pulled term remains a child of that parent.
Written by the indexing model from the issue text.
Description
Describe the bug
In hierarchical taxonomies, child terms are recreated on receiving sites without having their parent terms properly set.
Steps to Reproduce
- On the origin site: Create a post. Assign that post a term in a hierarchical taxonomy that is a child term of a parent term. This can be as a new child term, created contemporaneously with the new post, or as a new child term created on an existing post, or as a child term created and then later assigned to a post.
- On the receiving site: Pull the post to the receiving site.
- In the receiving site's block editor, view the post's hierarchical taxonomy terms. The term that was a child term on the origin site will be shown as a top-level term, not as a child term of the parent term, even though the parent term also exists on the receiving site.
Screenshots, screen recording, code snippet
Origin site:
After pulling that post via Distributor to a receiving site:
Environment information
No response
WordPress information
Seen in WordPress 6.6 through 7.1
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- PHP
- Stars
- 715
- Forks
- 160
- Avg merge
- 6h 10m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 10up/distributor
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
10up/distributor#1373 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
10up/distributor#1419 · 1 comment ·
Maintainers usually reply within 1 day
-
Distributor disables Block Editor Preferences pane; blocks closing the Preferences panePossibly taken @boonstraworks claimed this 33 days ago. Opentype:bug
Difficulty 3/5 1-2 days Newbie friendliness 56/100
10up/distributor#1409 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 48/100
10up/distributor#1400 ·
Maintainers usually reply within 1 day
-
type:enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
10up/distributor#1376 ·
Maintainers usually reply within 1 day
All issues in 10up/distributor
Similar issues
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Backend bug severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunningJoke/allipunkte#74 ·