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

WordPress Trac noreply at wordpress.org
Wed Oct 24 13:31:40 UTC 2018


#45163: get_term_by() should accept ID as a field
--------------------------+-----------------------------
 Reporter:  emrikol       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list