[wp-trac] [WordPress Trac] #35124: Add get_user() function that maps to get_user_by()

WordPress Trac noreply at wordpress.org
Fri Sep 27 23:56:48 UTC 2024


#35124: Add get_user() function that maps to get_user_by()
---------------------------------------------+------------------------
 Reporter:  sc0ttkclark                      |       Owner:  joedolson
     Type:  enhancement                      |      Status:  accepted
 Priority:  normal                           |   Milestone:  6.7
Component:  Users                            |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  good-first-bug has-patch commit  |     Focuses:
---------------------------------------------+------------------------
Changes (by joedolson):

 * keywords:  good-first-bug has-patch dev-feedback => good-first-bug has-
     patch commit


Comment:

 Updated patch corrects docs formatting and moves the function into
 `user.php`. There's no particular need to make use of this immediately; we
 can do that over time, as there's no functional difference between using
 this and the existing `get_user_by()`. This is mostly going to serve
 developers by providing a more natural and obvious path, similar to all
 other getter functions.

 In my opinion, there's no reason not to commit this, and it's about time.
 It's actually identical to the pluggable function `get_userdata()`, but
 more intuitive.

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


More information about the wp-trac mailing list