Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#9109 closed defect (bug) (fixed)

get_terms should return a reference to the error object, not the object itself

Reported by: nbachiyski's profile nbachiyski Owned by: ryan's profile ryan
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch tested commit
Focuses: Cc:

Description

&get_terms() returns new WP_Error() on error. Given its prototype, it should return a reference to the error object.

Attachments (1)

get-terms-reference.diff (571 bytes) - added by nbachiyski 15 years ago.

Download all attachments as: .zip

Change History (4)

#1 @Denis-de-Bernardy
15 years ago

  • Keywords tested added

#2 @Denis-de-Bernardy
15 years ago

  • Keywords commit added

commit? wontfix?

#3 @ryan
15 years ago

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

(In [11216]) Return ref. Props nbachiyski. fixes #9109

Note: See TracTickets for help on using tickets.