Opened 16 years ago
Closed 13 years ago
#12729 closed defect (bug) (fixed)
Fix [6326] - wp_unique_term_slug() when changing the parent
| Reported by: | nacin | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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
@
16 years ago
- Milestone Unassigned → 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.
#5
@
15 years ago
- Cc 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
@
13 years ago
- Keywords has-patch needs-testing needs-unit-tests added; dev-feedback removed
- Milestone Future Release → 3.7
Things like this really scare me
#9
@
13 years ago
- Keywords commit added; needs-testing needs-unit-tests removed
.2.diff is from develop root - all existing unit tests pass
#10
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
dd32 and I were discussing this the other day.
I think there might already be a ticket for it.
let me search.