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

WordPress Trac noreply at wordpress.org
Sat May 30 06:22:23 UTC 2020


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

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests revert
 * status:  closed => reopened
 * resolution:  fixed =>
 * type:  defect (bug) => enhancement


Comment:

 Unlike the users and posts table, the terms table has no ID column. From
 that point it doesn’t make sense to adopt the behavior from the other
 functions. Since terms have actually two IDs we shouldn’t really promote
 another alias for an existing alias `id` for `term_id`.

 Voting for a revert of [47865].

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


More information about the wp-trac mailing list