Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35919 closed defect (bug) (fixed)

Docs return in get_term()

Reported by: sebastian.pisula Owned by: boonebgorges
Priority: normal Milestone: 4.5
Component: Taxonomy Version:
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

I suggest change mixed to WP_Term|WP_Error|array because IDE can give prompt.

Attachments (1)

35919.patch (1.0 KB ) - added by sebastian.pisula 11 years ago.

Download all attachments as: .zip

Change History (5)

#1 @TimothyBlynJacobs
11 years ago

  • Focuses docs added
  • Keywords has-patch added

#2 @swissspidy
11 years ago

  • Milestone Awaiting Review4.5

#3 @TimothyBlynJacobs
11 years ago

Looking through the codebase, it seems like nearly all of the return types are generic arrays. Not sure why, but I'm sure there is a reason.

#4 @boonebgorges
11 years ago

  • Owner set to boonebgorges
  • Resolutionfixed
  • Status newclosed

In 36634:

Docs: Improve description of get_term() return value.

Props sebastian.pisula.
Fixes #35919.

Note: See TracTickets for help on using tickets.