Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#24343 closed defect (bug) (fixed)

Correct inline docs for hook parameters in wp_delete_term()

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 2.6
Component: Inline Docs Keywords: needs-codex
Focuses: Cc:


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:

This isn't the case. $term is an ID, so the first two parameters are term ID and term taxonomy ID:

The comment also doesn't reflect the change in [21939].

Change History (3)

#1 @SergeyBiryukov
8 years ago

  • Summary changed from Correct inline docs for hook parameters for wp_delete_term() to Correct inline docs for hook parameters in wp_delete_term()

#2 @SergeyBiryukov
8 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 24261:

Correct inline docs for wp_delete_term(). fixes #24343.

#3 @DrewAPicture
8 years ago

  • Keywords needs-codex added

See [24261] for clarified wp_delete_term() description.

Note: See TracTickets for help on using tickets.