Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#32950 closed defect (bug) (fixed)

Return documentation is incorrect for wp_get_post_terms()

Reported by: jeremyfelt's profile jeremyfelt Owned by: adamkheckler's profile adamkheckler
Milestone: 4.3 Priority: normal
Severity: normal Version: 2.8
Component: Taxonomy Keywords: good-first-bug has-patch
Focuses: docs Cc:


The documentation for wp_get_post_terms() specifies an array() as the return value. However, it returns the value of wp_get_object_terms(), which can return WP_Error().

Attachments (1)

32950.diff (695 bytes) - added by adamkheckler 9 years ago.

Download all attachments as: .zip

Change History (5)

9 years ago

#1 @adamkheckler
9 years ago

  • Keywords has-patch added; needs-patch removed

Diff attached. Seems fairly simple. (My first Core contribution!)

#2 @samuelsidler
9 years ago

  • Owner set to adamkheckler
  • Status changed from new to assigned

#3 @DrewAPicture
9 years ago

  • Milestone changed from Future Release to 4.3

@adamkheckler: Thanks for the patch!

#4 @DrewAPicture
9 years ago

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

In 33393:

Docs: Correct the possible return types and corresponding descriptions for wp_get_post_terms().

Props adamkheckler for the initial patch.
Fixes #32950.

Note: See TracTickets for help on using tickets.