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

WordPress Trac noreply at wordpress.org
Tue Feb 6 14:11:40 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.5
Component:  Users                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------

Comment (by sc0ttkclark):

 Renaming the usage everywhere seems ok to me but not required IMO.

 The renaming the function itself should be changed, keep the old function
 in place but have it call `get_user()` and then bring the logic into the
 new function with new phpdoc `@since` for 6.5.

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


More information about the wp-trac mailing list