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

WordPress Trac noreply at wordpress.org
Tue Feb 6 07:05:37 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:
--------------------------------------+------------------------
Changes (by kushang78):

 * keywords:  good-first-bug => good-first-bug has-patch


Comment:

 **I’ve added the latest patch.**

 == Patch includes below changes:
 - Added **get_user() ** **‘’- that maps to get_user_by()‘’** in the
 replace of **get_userdata()**.
 - There are plenty of files that contains **get_userdata()** function.
 Successfully Replaced with New **get_user()** function.
 - The root file of this function - {{{src/wp-includes/pluggable.php}}}

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


More information about the wp-trac mailing list