[wp-trac] [WordPress Trac] #35124: Add get_user() function that maps to get_user_by()
WordPress Trac
noreply at wordpress.org
Sat Sep 28 23:07:17 UTC 2024
#35124: Add get_user() function that maps to get_user_by()
---------------------------------------------+------------------------
Reporter: sc0ttkclark | Owner: joedolson
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch commit | Focuses:
---------------------------------------------+------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"59111" 59111]:
{{{
#!CommitTicketReference repository="" revision="59111"
Users: Add `get_user()` alias.
Add `get_user()` as an alias for `get_user_by( 'id', $user_id )`. Add
`get_user()` to `user.php` so it is not a pluggable function. Bring parity
with other standard `get_` functions for a more intuitive developer
experience.
Props sc0ttkclark, kushang78, joedolson, peterwilsoncc.
Fixes #35124.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35124#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list