Opened 14 years ago
Closed 11 years ago
#12729 closed defect (bug) (fixed)
Fix [6326] - wp_unique_term_slug() when changing the parent
Reported by: | nacin | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
[6326] uses $args (as an array) when it appears it should use $term (an object).
It's never worked, so I'm hesitant to patch it as I imagine it might break something elsewhere in the taxonomy API.
Assigning to ryan for now, who authored the commit.
Attachments (3)
Change History (14)
#2
@
14 years ago
- Milestone changed from Unassigned to 3.0
Yeah, dd32 and I discussed this as well, and he mentioned he had discussed it with you. I couldn't find another ticket and so I said I would create one.
#4
@
14 years ago
- Keywords dev-feedback added
- Milestone changed from Awaiting Triage to Future Release
#5
@
13 years ago
- Cc stephenh1988 added
If fixed, it will simply return the slug if it is already the slug for the term. Would that not be expected behavior?
#8
@
11 years ago
- Keywords has-patch needs-testing needs-unit-tests added; dev-feedback removed
- Milestone changed from Future Release to 3.7
Things like this really scare me
#9
@
11 years ago
- Keywords commit added; needs-testing needs-unit-tests removed
.2.diff is from develop
root - all existing unit tests pass
#10
@
11 years ago
That unit tests passes with the patch and fails without. This code is not really exercised since wp_insert_post() and wp_update_post() never call wp_unique_term_slug() in this situation. You pretty much have to call wp_unique_term_slug() directly (like the unit tests do) to trigger this.
dd32 and I were discussing this the other day.
I think there might already be a ticket for it.
let me search.