Opened 4 years ago
Closed 4 years ago
#9293 closed enhancement (fixed)
Clarify the args passed into wp_update_term
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.8 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
The args for wp_update_term are currently:
wp_update_term( $term, $taxonomy, $args = array() )
The first argument is not actually the term, but the term ID. Clearer code might be:
wp_update_term( $term_id, $taxonomy, $args = array() )
Attachments (2)
Change History (6)
simonwheatley — 4 years ago
comment:3
johnbillion — 4 years ago
Refreshed patch. Simple stuff.
Note: See
TracTickets for help on using
tickets.

Patch to clarify the args for wp_update_term