[wp-trac] [WordPress Trac] #65234: Abilities API: Expand `core/get-user-info` with profile fields and filtering

WordPress Trac noreply at wordpress.org
Tue May 26 08:58:26 UTC 2026


#65234: Abilities API: Expand `core/get-user-info` with profile fields and
filtering
---------------------------+---------------------
 Reporter:  gziolo         |       Owner:  gziolo
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  7.1
Component:  Abilities API  |     Version:  6.9
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+---------------------
Changes (by gziolo):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"62419" 62419]:
 {{{
 #!CommitTicketReference repository="" revision="62419"
 Abilities API: Expand core/get-user-info with profile fields

 Extends the `core/get-user-info` ability with additional profile fields
 (`first_name`, `last_name`, `nickname`, `description`, `user_url`) and a
 new optional `fields` input parameter that lets callers limit the response
 to a specific subset.

 The output schema now documents each property with a `title` and
 `description`, mirroring the user profile form labels where they apply and
 aligning the descriptions with the WP REST API user schema voice.

 Also ensures `roles` is encoded as a JSON array regardless of the
 underlying PHP array keys.


 Props sukhendu2002, apermo, gziolo.
 Fixes #65234.
 }}}

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


More information about the wp-trac mailing list