[wp-trac] [WordPress Trac] #64657: Add `core/get-user` ability

WordPress Trac noreply at wordpress.org
Tue May 26 09:06:44 UTC 2026


#64657: Add `core/get-user` ability
---------------------------------+---------------------
 Reporter:  jorgefilipecosta     |       Owner:  (none)
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  7.1
Component:  Abilities API        |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  abilities has-patch  |     Focuses:
---------------------------------+---------------------
Changes (by gziolo):

 * milestone:  Future Release => 7.1


Comment:

 #65234 added several enhancements to `core/get-user-info` like more
 supported fields (most of these listed in the description of this ticket),
 a way to filter which fields get returned. For me, it looks like the best
 past forward is to extend the existing ability by allowing passing the
 user identifier as proposed here:
 > Require one of: id (integer), username (string), or email (string).

 Following the user permission validation:
 > - User must be logged in.
 > - Users can view their own record.
 > - Viewing other users requires `list_users`.

 Two firsts conditions are implemented, so it all boils down to the third
 condition when viewing other user profiles.

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


More information about the wp-trac mailing list