Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33726 closed defect (bug) (fixed)

Bug in `get_terms()`

Reported by: ixkaito's profile ixkaito Owned by: boonebgorges's profile boonebgorges
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.3
Component: Taxonomy Keywords: has-patch
Focuses: Cc:


In documentation, 'orderby' argument accepts 'term_id', but it's missed in the code.

Attachments (1)

33726.diff (527 bytes) - added by ixkaito 9 years ago.

Download all attachments as: .zip

Change History (3)

9 years ago

#1 @boonebgorges
9 years ago

  • Focuses template removed
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.4
  • Owner set to boonebgorges
  • Status changed from new to reviewing

The error in the documentation was introduced in [29128]. That said, it's a reasonable enhancement.

#2 @boonebgorges
9 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 33903:

In get_terms(), allow terms to be ordered by 'term_id'.

[29128] introduced updated documentation for the 'orderby' parameter of
get_terms(). The new documentation mistakenly said that 'term_id' was a valid
orderby value. The current changeset makes that fantasy...A REALITY.

Props ixkaito.
Fixes #33726.

Note: See TracTickets for help on using tickets.