Make WordPress Core

Opened 16 months ago

Last modified 16 months ago

#45163 new defect (bug)

get_term_by() should accept ID as a field

Reported by: emrikol Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch needs-unit-tests
Focuses: Cc:


Similar to ticket #33869 and get_user_by(), get_term_by() should accept either ID or id for the $field argument.

This helps keep consistency between similar functions that use similar arguments.

Attachments (1)

get_term_by_ID.patch (650 bytes) - added by emrikol 16 months ago.
Patch against trunk for get_term_by

Download all attachments as: .zip

Change History (2)

16 months ago

Patch against trunk for get_term_by

#1 @SergeyBiryukov
16 months ago

  • Component changed from General to Taxonomy
  • Keywords has-patch needs-unit-tests added
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.