WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 12 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:
PR Number:

Description

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 12 months ago.
Patch against trunk for get_term_by

Download all attachments as: .zip

Change History (2)

@emrikol
12 months ago

Patch against trunk for get_term_by

#1 @SergeyBiryukov
12 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.