Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#34174 closed defect (bug) (fixed)

Documentation for _pad_term_counts is wrong

Reported by: wpsmith's profile wpsmith Owned by: drewapicture's profile DrewAPicture
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.5
Component: Taxonomy Keywords: has-patch
Focuses: docs Cc:

Description

Currently, the documentation states that the first parameter is an array of term IDs. However, it should be an array of term objects.

Attachments (1)

34174._pad_term_counts.taxonomy-functions.php.patch (553 bytes) - added by wpsmith 9 years ago.
corrected docs

Download all attachments as: .zip

Change History (4)

#1 @swissspidy
9 years ago

  • Component changed from General to Taxonomy
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.4
  • Version changed from trunk to 2.5

Looks like that was introduced in [6254]

#2 @DrewAPicture
9 years ago

  • Owner set to DrewAPicture
  • Status changed from new to reviewing

#3 @DrewAPicture
9 years ago

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

In 34884:

Docs: _pad_term_counts() takes an array of objects passed by reference, not term IDs.

Props wpsmith.
Fixes #34174.

Note: See TracTickets for help on using tickets.