Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#32950 closed defect (bug) (fixed)

Return documentation is incorrect for wp_get_post_terms()

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

Description

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 11 years ago.

Download all attachments as: .zip

Change History (5)

@adamkheckler
11 years ago

#1 @adamkheckler
11 years ago

  • Keywords has-patch added; needs-patch removed

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

#2 @samuelsidler
11 years ago

  • Owner set to adamkheckler
  • Status newassigned

#3 @DrewAPicture
11 years ago

  • Milestone Future Release4.3

@adamkheckler: Thanks for the patch!

#4 @DrewAPicture
11 years ago

  • Resolutionfixed
  • Status assignedclosed

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.