Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#35919 closed defect (bug) (fixed)

Docs return in get_term()

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

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

Download all attachments as: .zip

Change History (5)

#1 @TimothyBlynJacobs
8 years ago

  • Focuses docs added
  • Keywords has-patch added

#2 @swissspidy
8 years ago

  • Milestone changed from Awaiting Review to 4.5

#3 @TimothyBlynJacobs
8 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
8 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 36634:

Docs: Improve description of get_term() return value.

Props sebastian.pisula.
Fixes #35919.

Note: See TracTickets for help on using tickets.