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

WordPress Trac noreply at wordpress.org
Mon Sep 14 18:32:22 UTC 2015


#33869: get_user_by() should accept ID as a field
--------------------------+-----------------------------
 Reporter:  Shelob9       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `get_user_by()` and `WP_User::get_data_by()` which it calls accept `id`
 but not `ID` as a value for the `$field` argument. This is counter-
 intuitive, since the DB column is "ID" not "id". I am attaching a patch to
 allow passing "ID", without breaking the use of "id".

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


More information about the wp-trac mailing list