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

WordPress Trac noreply at wordpress.org
Mon Feb 12 20:19:46 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.6
Component:  Users                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------
Changes (by joedolson):

 * milestone:  6.5 => 6.6


Comment:

 We can't just remove a function that simply; `get_userdata` is extremely
 widely used, and this change would create a lot of breakage. We can alias
 it, but removing it is not so ideal.

 The big question here is whether we might want to deprecate get_userdata
 when we add get_user. It's a simpler construction, more predictable,
 matches more other existing function naming patterns.

 I'm not sure this will be ready for 6.5; I haven't had time for it, but
 I'm going to re-milestone to 6.6.

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


More information about the wp-trac mailing list