[wp-trac] [WordPress Trac] #45163: get_term_by() should accept ID as a field

WordPress Trac noreply at wordpress.org
Fri May 29 22:41:39 UTC 2020


#45163: get_term_by() should accept ID as a field
--------------------------------------+-----------------------------
 Reporter:  emrikol                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.5
Component:  Taxonomy                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by whyisjake):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47865" 47865]:
 {{{
 #!CommitTicketReference repository="" revision="47865"
 Taxonomy: Extend `get_term_by` to accept `ID` as a term parameter.

 Similar to `get_user_by`, both `ID` and `id` should be able to accepted.

 Fixes #45163.
 Props emrikol, esoj.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45163#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list