#33869 closed defect (bug) (fixed)
get_user_by() should accept ID as a field
| Reported by: | Shelob9 | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | General | Version: | 4.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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".
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
+1 for consistency