#24343 closed defect (bug) (fixed)
Correct inline docs for hook parameters in wp_delete_term()
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Inline Docs | Version: | 2.6 |
| Severity: | normal | Keywords: | needs-codex |
| Cc: | Focuses: |
Description
According to @uses comment in wp_delete_term(), delete_term and delete_$taxonomy actions receive term object and term ID as the first two parameters:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/taxonomy.php#L1754
This isn't the case. $term is an ID, so the first two parameters are term ID and term taxonomy ID:
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/taxonomy.php#L1838
The comment also doesn't reflect the change in [21939].
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 24261: