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

WordPress Trac noreply at wordpress.org
Mon Sep 14 18:57:17 UTC 2015


#33869: get_user_by() should accept ID as a field
--------------------------+---------------------------
 Reporter:  Shelob9       |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34125"]:
 {{{
 #!CommitTicketReference repository="" revision="34125"
 Accept 'ID' as a valid `$field` in `get_user_by()`.

 We already accept 'id'. `ID` more closely matches the database and
 `WP_User` schemas.

 Props Shelob9.
 Fixes #33869.
 }}}

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


More information about the wp-trac mailing list