WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#35919 closed defect (bug) (fixed)

Docs return in get_term()

Reported by: sebastian.pisula Owned by: 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 4 years ago.

Download all attachments as: .zip

Change History (5)

#1 @TimothyBlynJacobs
4 years ago

  • Focuses docs added
  • Keywords has-patch added

#2 @swissspidy
4 years ago

  • Milestone changed from Awaiting Review to 4.5

#3 @TimothyBlynJacobs
4 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
4 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.