Opened 18 years ago
Closed 17 years ago
#9293 closed enhancement (fixed)
Clarify the args passed into wp_update_term
| Reported by: | simonwheatley | Owned by: | ryan |
|---|---|---|---|
| Priority: | low | Milestone: | 2.8 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to clarify the args for wp_update_term